C_66 Program to Find Length of a String | C Programming Language

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • In this lecture we will discuss a C program to find length of a string.
    Best C Programming Tutorials: • Programming in C
    *********************************************
    Connect & Contact Me:
    Jenny's Lecture Hindi: / @jennyslectureshindi
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    Telegram Group Link: Jenny's Lectures
    telegram.me/je...
    *******************************************
    More Playlists:
    Programming in C Tutorials: • Programming in C
    C++ Tutorials for beginners: • Lec 1: How to Install ...
    Printing Pattern in C: • Printing Pattern Progr...
    Best Python Tutorials for Beginners: • Python - Basic to Advance
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Design and Analysis of Algorithms(DAA): • Design and Analysis of...
    Dynamic Programming: • Dynamic Programming
    Operating Systems tutorials: // • Operating Systems
    DBMS Tutorials: • DBMS (Database Managem...
    Tags:
    strings, string in c, what is string, c programming tutorials, c programming, best c programming tutorials
    #coding #strings #jennyslectures #cprogramming #clanguage

Komentáře • 147

  • @THR17
    @THR17 Před 3 lety +57

    I have never thought that a youtuber would seriously have an impact on my Data Structures... *"THANKS ALOT MA'AM* 🙏🏼

  • @baibhavrajkumar418
    @baibhavrajkumar418 Před 2 lety +5

    #include
    #include
    int main(){
    char str[60]="Mam you look soo beautiful"
    gets(str);
    printf("%s,str);
    return 0;
    }

    • @sudhanshuyadav4441
      @sudhanshuyadav4441 Před 2 lety

      😄

    • @KrishnaGupta-yc3jd
      @KrishnaGupta-yc3jd Před 5 měsíci +2

      Mam would be sad on your mistakes....gets is used as scanf, so why do you are using it as you aren't taking input from the user?

    • @lifemalayalamyoutube7192
      @lifemalayalamyoutube7192 Před měsícem

      Why are people obsessed with her looks, just be obsessed with her knowledge and kindness to help us. She also expect it only from us🙏🏾

  • @jenniferm.9666
    @jenniferm.9666 Před 2 lety +8

    Best CZcams C-Programming teacher! :D

  • @katamabhishek8844
    @katamabhishek8844 Před 3 lety +15

    We want notes mam for c language it is so helpful for us and congratulations for 500k 😍🎉🎉🎉🎉

  • @freddjefferson9612
    @freddjefferson9612 Před 2 lety +11

    Hello Ma'am.
    Thanks very much for your brilliant ideas. I really do appreciate your efforts.😊😊
    But there's this small worry I got last week that I'll like to share with you. I was asked to read strings each seperated by a space.
    And the word "STOP" marks the end of the string

  • @chetansingh55
    @chetansingh55 Před 3 lety +6

    Thanks mam.
    Plz complete this C language series mam. These are very helpful. And I want to start DSA after this.

  • @srinivasgoje3835
    @srinivasgoje3835 Před 3 lety +3

    Awesome Mam ....I m from Mechanical Domain and I have move to IT ...your vedios are helping me a lot to clear my concept

  • @JKA-sf7ll
    @JKA-sf7ll Před 3 lety +11

    Interview tip::
    we use for loop when we know value of n
    we use while loop when are not sure about value of n

  • @YuvrajChowhan
    @YuvrajChowhan Před 2 lety +6

    Mam, since you are taking an int main(), so you should return some integer value to the compiler.Nice lecture

  • @riyagupta8803
    @riyagupta8803 Před 3 lety +5

    Mam your videos are really helpful and I really want you to please cover all the topics of c with some programs in the same way as you have done in array,strings
    One thing more after C completion pls upload 2-3 video of simple project in C.

  • @MohammedIbrahim-eu1mk
    @MohammedIbrahim-eu1mk Před 3 lety +3

    Mam keep going on mam soon 1 million ki family banne waleeeho

  • @sandeepnallala48
    @sandeepnallala48 Před 3 lety +5

    Man can you take classes on interview preparation data structures Algorithms as well please ?

  • @RajeshKumarMinaBEE
    @RajeshKumarMinaBEE Před 3 lety +4

    Hello ma'am, can you upload all lectures in 2-3 days. Because my data structure & algorithm classes start from 3 August and requirements C language. So I humble request you.

  • @மின்விரிதாள்_விரிப்போம்_வாங்க

    Back to the basics! Nice explanation. Do we need two variables count and i? Why can't we use single variable?

    • @prashantpawar4948
      @prashantpawar4948 Před 2 lety +1

      not need, we can use only count or i 🙂

    • @bijoyetribhowmik9905
      @bijoyetribhowmik9905 Před 2 lety +1

      So that the next one can distinct the usage of count and i clearly.. as if you only use i, then it may cause confusion

  • @rishasinha5770
    @rishasinha5770 Před 3 lety +4

    Your video is very helpful mam. Your videos helped to find reason of every word showing on the screen.
    I have seen many videos but no one nor my teacher really explains about how characters, digits are stored in memory or about index value. Mam, please upload some video of java also.

  • @krunalchandewar5590
    @krunalchandewar5590 Před 2 lety +1

    thanks mam, smile & punches missing in vdo, i saw mostly all, u r so professional

  • @user-on3sd5oc9r
    @user-on3sd5oc9r Před 8 měsíci +1

    Thank u so much mam

  • @elijahmikaelson740
    @elijahmikaelson740 Před 2 lety +1

    ma'am please make a vedio on string functions like strtok,strnlen ,strncmp.

  • @adityanikhate9223
    @adityanikhate9223 Před 3 lety +2

    Ma'am can you please teach Recursion of function in C

  • @benstroke9737
    @benstroke9737 Před 7 měsíci +2

    Using for loop -
    #include
    void main()
    {
    char name[30];
    int count=0;

    printf("Enter a Name ");
    gets(name);


    for(int i=0;i

  • @harshpandey3500
    @harshpandey3500 Před 3 lety +2

    It's Very useful ☺☺

  • @shankartirumala2789
    @shankartirumala2789 Před 2 lety +1

    Madam please do video about string length using call by address

  • @MDJAKIR-qj8ri
    @MDJAKIR-qj8ri Před 3 lety +2

    Very good

  • @ss-li4mg
    @ss-li4mg Před 3 lety +2

    Awesome class

  • @leonelmessi3010
    @leonelmessi3010 Před 2 lety +2

    Ma'am gets() is removed from the library. How to use fgets()?

  • @gladiator9802
    @gladiator9802 Před 3 lety +1

    In case if length of the string is 100000000000 ,then loop will have to run length times and performance will be worst .
    Can't we loop till string length by 2 and for each iteration we swap with last and first element ,and foe next iteration we swap first+I with last-i.
    This way we have to loop only length/2 and using swaping string will be reversed .
    Next variant is we can use stack to reverse the string as stack is very fast coz it's maintained in main memory so it may up the performance than both approach .

  • @simon-gh1pt
    @simon-gh1pt Před rokem +1

    #include
    int main(){
    char name[10];
    printf("enter name:
    ");
    gets(name);
    int x=printf("%s
    ",name);
    printf("%d
    ",x);
    printf("Thank you %c",(char)2);
    return 0;
    }
    / * you can try this * /

  • @codingisfun1
    @codingisfun1 Před 6 měsíci

    Count length of a string 👇 czcams.com/users/shorts1IzNBx05vkA?si=Sm1DNTDVqqagNWa0

  • @Ijk-tb7wf
    @Ijk-tb7wf Před 4 měsíci

    9:38 mam for loop is better then other 2 loop

  • @meghasinha1706
    @meghasinha1706 Před 3 lety +1

    Thanks for your efforts mam

  • @sigmainfinity5475
    @sigmainfinity5475 Před 3 měsíci

    Tomorrow my exam and now I'm doing 7 th assignment from your lecture.... thanks 🙏 mam ❤

  • @nandhucharan5858
    @nandhucharan5858 Před 3 lety +1

    Hello ma'am please make video on bitmasking in c

  • @hardiksavaliya4516
    @hardiksavaliya4516 Před 2 lety +1

    Main point for mam she doesn't tell to like their video and not tell subscribe her channel.... it's good thing to compare of other channel.

  • @gurueducationandmotivation8140

    Mam You Are Great Mam , Thank YOU so MUCH mam , Even I am Biology Student , I can Understand programming, its all Because of You
    THANK YOU MAM
    KEEP ROCKING MA'AM

  • @sivakrishna6485
    @sivakrishna6485 Před 3 lety +2

    Upload daily 5 videos mam, I don't have time, next year I will start one startup company

  • @OOAORAMEEZ
    @OOAORAMEEZ Před 3 lety +2

    Mam...will u plz explain why do we use null character in string!?..
    Like u told u will explain 😅
    And fgets function also!

    • @kabirsarohe5166
      @kabirsarohe5166 Před 7 měsíci

      Just Because to terminated the string .
      If we are not using null, then some garbage value will be shown in output

  • @jeanrioux8750
    @jeanrioux8750 Před rokem

    The program "With our own logic" could be simplified. Since the variables count and i have always the same value, using only one of the variables would be enough.
    int main()
    {
    int i = 0;
    char name[30];
    printf("Enter name: ");
    gets(name);
    while(name[i] != '\0')
    {
    i++;
    }
    printf("The length of the string is: %d", i);
    }

    • @thilakparamasivan8409
      @thilakparamasivan8409 Před rokem

      I too thought that

    • @basharanwr3649
      @basharanwr3649 Před rokem

      @@thilakparamasivan8409 I think she know that but made it with two var make it easy to understand the index

  • @anujeetkunturkar780
    @anujeetkunturkar780 Před 3 lety +2

    Skip 1:26 to 3:04.

  • @rahulprasad9198
    @rahulprasad9198 Před 3 lety +1

    Ma'am, make a program to count the frequency of character in a string !

  • @Nassir8535
    @Nassir8535 Před rokem

    a data scientist from kenya🖐you teach better than my lec mam

  • @Ijk-tb7wf
    @Ijk-tb7wf Před 4 měsíci

    Thank you mam 😊

  • @ADARSHKUMAR-ne8ov
    @ADARSHKUMAR-ne8ov Před 3 lety +1

    Maam aap sanskrit bhi padhayeee tho bhi mai din raat tyaar hun apki class attend krne ke liye..... Pr aap video bnana kabhi band mt kijiyega.......

  • @Iqbalsharib4
    @Iqbalsharib4 Před 3 lety +2

    Ma'am when are you going to start python series?

  • @adroway
    @adroway Před 3 lety +2

    CZcams recommended me

  • @ececse
    @ececse Před rokem

    thankyou ma'am 🙏

  • @shraddhapawar5674
    @shraddhapawar5674 Před 3 lety

    Lot's of love and blessings from shraddha.
    Ma'am if possible will you please make video on how to install ide.

  • @sanjeetharan1143
    @sanjeetharan1143 Před 7 měsíci +1

  • @Mr_Addy1
    @Mr_Addy1 Před 2 lety +1

    what if there is space between jay anti but still i want the output of string length as 7 is it possible mam??

  • @learningdatasciencealongme190

    Not able to focus on subject 🙄🙄

  • @letsbegininbinaryworld
    @letsbegininbinaryworld Před 3 lety +2

    Madam Please DBMS Ka Hindi me lecture banaye

  • @abijithasokan2632
    @abijithasokan2632 Před rokem

    Perfect teacher doesn't exi.. 🙄

  • @melthabah1158
    @melthabah1158 Před 3 lety

    Thank you mam

  • @RAHULKUMARSINGH-qp9mc
    @RAHULKUMARSINGH-qp9mc Před 3 lety

    Came to say I love you mam.. I am NULL .. Need a next or may be both pointers..

  • @A1Tech6111
    @A1Tech6111 Před 2 lety

    Thanks medam

  • @Proudmuslim32
    @Proudmuslim32 Před 7 měsíci

    superb

  • @gummadiraju6425
    @gummadiraju6425 Před 9 měsíci

    Ma'am u said that length of the string is number of characters +1 ...but in strlen..ur saying end of the string

  • @tadepallirahul9119
    @tadepallirahul9119 Před 3 lety +1

    Hello mam please make a video on preparation plan for GATE exam from the b.tech 1st year
    Please make a video on it

  • @RTBOSS
    @RTBOSS Před 3 lety +1

    😗....😁 by the way thank you so much...

  • @TarunTech01
    @TarunTech01 Před 9 měsíci

    Mam please do video on memmove(), memset(), memcpy()

  • @abhishekpimpalshende4085

    char str[]={'a','b','c','d',' ','e','f','g','h'};
    what is the length of above string??
    strlen(str)=???

  • @rvce
    @rvce Před rokem

    We can do it without using count right, just using i ..........

  • @crazyhacker2437
    @crazyhacker2437 Před 3 lety +1

    Hello Mam, I am working in IT company in cyber security domain. I need to audit code for possible vulnerabilities. Please make videos on below topics.
    1) Double pointers
    2) Pointers to structure
    3) Pointers to arrays
    4) Dynamic Memory Allocation and deallocation.

  • @AmitPandey_10
    @AmitPandey_10 Před rokem

    if(jenny == beautiful){
    cout

  • @kunalsehgalkunalsehgal5682

    Mam please run this with for loop also

  • @vasusharma6210
    @vasusharma6210 Před 2 lety

    helpful video

  • @send2meanything
    @send2meanything Před 2 lety

    Write a C program to find first occurrence of a word in a given string.

  • @deepika5880
    @deepika5880 Před 3 lety

    Ma'am please aap Binary tree ke deletion and searching ka bhi implementation ke lie video upload karona

  • @destroyer_x9595
    @destroyer_x9595 Před 2 lety +1

    can anyone help me telling how to use for loop and do-while loop in this code?

  • @abhishekrajput8392
    @abhishekrajput8392 Před rokem

    Can canyone tell me while we use puts() in place of gets(). It is not printing lenght of string and it is printing any other string that I had not entered in input

  • @prasannaguna2643
    @prasannaguna2643 Před rokem

    mam,how can the string use in function?
    how to pass the array in function?

  • @_kucial_
    @_kucial_ Před 2 lety

    Jo without user-defined function se wount krne wala tha....usme count ko q increment kiya gya haa ??? Koi batao i ka increment samaj mei aaya

  • @adhithyamudhiraj8536
    @adhithyamudhiraj8536 Před 3 lety

    Mam your dress is soo nice👌👌

  • @AbhiAbhi-kv3nk
    @AbhiAbhi-kv3nk Před 3 lety

    Mam when will you finish the c language (How many days/ months) and start the other topics.... Mam please reply to my comment....

  • @prashant7895
    @prashant7895 Před 3 lety

    please teach us e&tc subjects

  • @sunnykvofm
    @sunnykvofm Před 3 lety

    Mai fir Jenny mam ki video dekhne aa gya ..... Har pal sochta hu cs se btech kyu nahi ki 😭😭

  • @kumarvicky6337
    @kumarvicky6337 Před 3 lety +1

    ok

  • @xDeadlyWarriorX
    @xDeadlyWarriorX Před rokem

    For some reason mine is showing len 0.
    size_t strLen = strlen(palavra);
    printf("Size of String >> %zu", strLen);

  • @santanusaha3762
    @santanusaha3762 Před 2 lety

    mam %d ta %s hoga . on the 1st Program

  • @vivekghadage7208
    @vivekghadage7208 Před 3 lety +1

    When Python ?

  • @ParamitaDey-bi1mg
    @ParamitaDey-bi1mg Před 2 lety

    17:09 if we use puts() function then why we are using gets() function ?? PLEASE REPLY

    • @ganeshmahajan8695
      @ganeshmahajan8695 Před 2 lety +1

      puts( ) is for printing the string and gets( ) is for getting the input from user

    • @ParamitaDey-bi1mg
      @ParamitaDey-bi1mg Před 2 lety

      @@ganeshmahajan8695 Thanks for solving my doubt

    • @ParamitaDey-bi1mg
      @ParamitaDey-bi1mg Před 2 lety

      @@ganeshmahajan8695 I cannot understand the use of null pointer .. If we use null pointer then also if program is crashing then why to initialize ptr with null pointer ? Can you say me this ans

    • @higgsboson67
      @higgsboson67 Před 7 měsíci

      @@ParamitaDey-bi1mg Did u get the answer?? 😒

    • @ParamitaDey-bi1mg
      @ParamitaDey-bi1mg Před 7 měsíci

      @@higgsboson67 I don't know exact answer but I think null pointer is used so that we can check whether program can run or not

  • @vikaskumar-up8yg
    @vikaskumar-up8yg Před 3 lety

    Mai share market Mai trading karta Hu ,Mera age 21 hai lekin Mai coding Ka vedeo Dekh Raha Hu kyuki ye Jo teacher hai inke English bolne Ka tarika mujhe bahut bahut pasand ,mujhe English utna nhi hai ata hai lekin samjh Jata Hu Thora bahut Ulta sidha samjhta Hu😀😀😀😁,mujhe sirf inke English sikhna hai has coding mujhe samjh nhi ata hai

  • @techelitee410
    @techelitee410 Před 3 lety

    Ma'am we can use for loop also as well😊

    • @zon4008
      @zon4008 Před 2 lety +1

      Can you please give me code using for loop

  • @sk_ismail_hsn
    @sk_ismail_hsn Před rokem

    How to solve this using fgets()?

  • @nikhilpragada1562
    @nikhilpragada1562 Před 2 lety

    I like your dressing style mam

  • @gokulraj8302
    @gokulraj8302 Před 2 lety

    12:18

  • @send2meanything
    @send2meanything Před 2 lety

    mam can u plz solve this question

  • @rajeshjena5508
    @rajeshjena5508 Před 3 lety +1

    ❤️❤️❤️❤️

  • @mont76
    @mont76 Před 2 lety

    Mam ap bohat sundar ho

  • @nakuldhotarkar8790
    @nakuldhotarkar8790 Před 3 lety

    Ma'am I want some help for c ++ program

  • @shorttechnicsaty2984
    @shorttechnicsaty2984 Před 3 lety +2

    Today I am late 😭.

  • @valentinehrahsel1854
    @valentinehrahsel1854 Před 2 lety

    hmeltha reuh hle mai a 🤣🤣

  • @shilpashreee23
    @shilpashreee23 Před rokem +1

    Aap plz Hindi me v study karaya kro plz 😓😓😣😣

  • @subhabratabehera8835
    @subhabratabehera8835 Před 2 lety

    ❤️❤️

  • @yadav211
    @yadav211 Před 3 lety +1

    Preety cute mam ❤️♥️

  • @madhavkumar895
    @madhavkumar895 Před 3 lety +1

    💕💞

  • @akashchandranial1192
    @akashchandranial1192 Před 3 lety

    I love you mam

  • @geethalatha4187
    @geethalatha4187 Před 2 lety

    Heroin 👸

  • @Mahaveergautam
    @Mahaveergautam Před 3 lety +1

    Fourth comment

  • @pythagoras31416
    @pythagoras31416 Před 3 lety +1

    Ma'@m how to print: I love you??

    • @PrateekMishra.
      @PrateekMishra. Před 3 lety +3

      #include
      int main ()
      {
      printf("I Love You") ;
      return 0;
      }
      /*don't disturb your ma'am for such simple issues*/

  • @arindamroy5681
    @arindamroy5681 Před 10 měsíci

    ma'am you r looking cute 🥰❤