C_62 Strings in C - part 1 | C programming tutorials

Sdílet
Vložit
  • čas přidán 16. 07. 2024
  • In this lecture we will discuss:
    - What is String in C?
    - How to declare a string?
    - How to initialize a string in C?
    Best C Programming Tutorials: • Programming in C
    *********************************************
    Connect & Contact Me:
    Jenny's Lecture Hindi: / @jennyslectureshindi
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/profile/Jayanti...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    Telegram Group Link: Jenny's Lectures
    telegram.me/jennyslectures
    *******************************************
    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 • 504

  • @ankan7193
    @ankan7193 Před rokem +111

    You are like the last-minute savior of us 1st-year students who are having exams tomorrow morning and started studying now ...I had a brief idea about everything but now its crystal clear

  • @DMan003
    @DMan003 Před 10 měsíci +74

    16:56 question answers..
    1. Valid
    2.Size=12(1 null character)
    3.Invalid(No space for null character in memory)
    4.Size=6
    5.Valid

    • @vinayakk2745
      @vinayakk2745 Před 8 měsíci +6

      3rd one wouldn't throw any error, it's valid

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

      @@vinayakk2745 it should be 6, not 5.

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

      yes@@But_tHope

    • @skywa1ke7.a
      @skywa1ke7.a Před 6 měsíci +5

      @@But_tHopeyes it should be but it will not give any error

  • @vimala7830
    @vimala7830 Před 3 lety +357

    Thank you akka vera level clear explanation 🤩

  • @delllaptop519
    @delllaptop519 Před 2 lety +25

    printf(''Who Is Jenny Mam ? ");
    output : jenny mam who is alredy stolen my heart 😜

  • @princereshav9964
    @princereshav9964 Před 3 lety +152

    We have C language in our coming semester. Perfect time to study.
    And your Data Structure video are better than Unacademy's.

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

      czcams.com/video/sStlBoYbaHs/video.html

  • @manvanth4713
    @manvanth4713 Před 2 lety +21

    It's a privilege to watch ur stuff...the way u tutor is a way ahead.. I could say this with a sigh of bliss..

  • @rashmiranjannayak8638
    @rashmiranjannayak8638 Před 2 lety +12

    10:27 yaar make me fall in love with your way of teaching. Really appreciated

  • @harshasandaruwan6357
    @harshasandaruwan6357 Před 3 lety +37

    Madam.I'm a Sri Lankan University Student.thank you for every lessons.very clear vedios.god bless you

  • @RobertRindik
    @RobertRindik Před rokem +15

    Ma'am, you are a n̶a̶t̶i̶o̶n̶a̶l̶ global treasure.
    Thank you very much for educating us for free.

  • @34_abdimajidmohamed53
    @34_abdimajidmohamed53 Před 3 lety +12

    I am from Somalia So Madam I learn many courses in your channel and i understood very well so I proud you🙏🙏

  • @shubhampatil4631
    @shubhampatil4631 Před 2 lety +4

    i love the way you teach mam ,means its simple and clear.

  • @d__sou_2238
    @d__sou_2238 Před rokem +4

    Best online teacher... Padha ti bhi acchi ho... Or dakhna ma bhi... To ander sa energy ata ha pardhna ka liye

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

    Mam thank you so much..
    Please keep on doing videos on C language.And complete it as soon as possible .
    Because I am learning C language through your videos.
    👍🏻👍🏻🙏🏻Thank you

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

  • @UICS_ViveshNarenSriRamoj-jo7wu

    char s3[5]="hello"; has error because size of string is 6(no of character+1) but its given as s3[5]

  • @tarikazizi8597
    @tarikazizi8597 Před rokem +8

    Nice knowledge...nice way to explain... Sure God will rewards you.

  • @jacinta1199
    @jacinta1199 Před 3 lety +40

    You did a great job for all of us. Your explanation is so clear and simple and that's what a beginner students need. Thank you so so much❤️

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

  • @lovejotkaur1689
    @lovejotkaur1689 Před rokem +7

    1st s1 is correct.
    2nd s2 ia [12].
    3rd s3 is wrong❌.
    4th s4 is [6].
    5th s5 is correct✅.

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

    I seriously like and use your lectures you will be a good programmer soon, thank you !!

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

    Smart teacher ,smart teaching..I am from sri lanka..🇱🇰

  • @villageLifevlog-sb4vb
    @villageLifevlog-sb4vb Před 2 lety +2

    Mam ur teaching method is soo soo fablous and easy to get ....lots of love mam....🥰🥰❤❤

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

    Ma'am jenny you are a genuine Professor, i am from Pakistan 🇵🇰, i learnt it very well

  • @rayhanmahmud6579
    @rayhanmahmud6579 Před 2 lety +131

    s1 : Allowed
    s2 : Allowed, size 12 byte
    s3: Not Allowed
    s4: Allowed, size 6 byte
    s5: Allowed

    • @prathamshrivastava6641
      @prathamshrivastava6641 Před 2 lety +23

      S3 is allowed because counting starts from 0 so it will be of 6 spaces only

    • @prathamshrivastava6641
      @prathamshrivastava6641 Před 2 lety +7

      Similarly in S2 it will be return as 11 not 12 mam has asked about missing thing right so we have to write that not size

    • @ChirantanSadhu
      @ChirantanSadhu Před 2 lety +21

      @@prathamshrivastava6641 NO bro, we always put length in case of initialization and for accessing we use index ,as we are initializing here so here length is 5 .And total number of characters are 6 (including null character).So it is not allowed.

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

      @@prathamshrivastava6641 no bro s3 is not allowed

    • @RahulSingh-pf7uj
      @RahulSingh-pf7uj Před 2 lety +3

      @@ChirantanSadhu na bhai maine run karke dekha and Hello print ho gya (i use Code Blocks for programming)....so S3 is allowed bcoz HELLO mae 5 characters hai aur size bhi 5 hai ....as ma'am said in starting ki Null character declare nhi kara hai toh by default null character will be declared by compiler but question is "if size is 5 toh null character ke liye space hi nhi baccha" ab ya toh yeh Code Blocks mae run kar gya isliye tum log ek baar TURBO C mae run karke batana muje comment section mae ki TURBO C mae run hua ya nhi

  • @hemanthlanke4652
    @hemanthlanke4652 Před 2 lety

    Super akka chala baga explain chesav 👋👋 verey level iam became a big fan of u

  • @ps709
    @ps709 Před 3 lety +17

    By when this series be completed?
    Also apart from video lectures can you take up some really important questions asked in placement exams(strings code,functions etc)

  • @MSvinesss
    @MSvinesss Před 2 lety +4

    mam you are the only one teacher that explain with zero my doughts are flashed by the dry runn of the program thank you so much mam for the great content...

  • @Happy_boy10
    @Happy_boy10 Před rokem

    Ma'am ur smiling is just killing me without any pain ......
    N Thank you so much for this type of lovely explanation.. 💕

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

    Bless your parents as they offer such beautiful brain to the world.

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

    Very awesome moment when u forgot.
    Excellent friend guide teacher....

  • @HarishSingh-gg4hs
    @HarishSingh-gg4hs Před 2 lety +1

    Thank you so much for this video mam🤗❤

  • @MMNayem-dq4kd
    @MMNayem-dq4kd Před 2 lety

    Your teaching skill and smile are
    great

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

    Thank you professor 😉👍🏽

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

  • @LE-Anjali
    @LE-Anjali Před rokem +1

    s1:valid
    s2:12 bytes
    s3:not valid ,because it has size is 5 ,but it should take the null value also. it should be size of 6.so it is invalid
    s4:6 bytes
    s5:valid

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

    ❤❤❤Thank you so much for this playlist❤❤❤❤

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

    Big fan of you and your lectures.....❤️

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

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

    Mam please start making videos on Object oriented programming of c++ also and java also

  • @bimglobal8405
    @bimglobal8405 Před 11 měsíci +4

    ALX student finding hope from your lectures. Thank you ma'am

  • @kaykang8808
    @kaykang8808 Před 2 lety

    i'm really love your eye ; from cambodia. i appreciate it.

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

    That was so cute moment at the time between 10.25 to 10.30
    I just watched her pretty smile
    Her smile is like an blooming flower 🌼
    I won't forget this pretty moment ❤️🍁✨👍

  • @gsandeep7667
    @gsandeep7667 Před rokem

    Ur teaching is fabulous mam ❤️‍🔥🥰

  • @lokeshpentakotalokeshpenta534

    Thankyou for teaching love you 💞

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

    Hi Jenny, at 9:02 location you were explaining like 6 to 9 locations some garbage values , but it will fill with '\0' NULL Character itself. can you plz confirm it if I am wrong.

  • @meghasinha1706
    @meghasinha1706 Před 2 lety

    Thanks for your efforts mam

  • @vbrathodrathod8021
    @vbrathodrathod8021 Před rokem

    Thanks a lot ....🙏🙏🙏🙏🙏🙏🙏ma'am nice explanation method.....👍

  • @vikaskesharwani2125
    @vikaskesharwani2125 Před 3 lety +12

    I feel so thankful watching your lectures

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

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

    Thank u mam. you are the best

  • @chawais3858
    @chawais3858 Před 6 měsíci +2

    1: valid
    2 : 11
    3 : invalid
    4 : 6
    5 : Valid

  • @divya.v3350
    @divya.v3350 Před rokem

    Mam keep doing thizzzzz videos really helpful💜

  • @chaitralinaidu8019
    @chaitralinaidu8019 Před 2 lety

    Best Playlist For Beginner

  • @divyanshbalodhi5642
    @divyanshbalodhi5642 Před rokem +1

    Mazaa aa gayaa ma'am ji🙏

  • @Niteshyadav-os1zl
    @Niteshyadav-os1zl Před 3 lety +2

    thanks for providing such type off video ......................

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

  • @kunasinku2495
    @kunasinku2495 Před rokem

    Thank you mam🙏🙏🙏🙏

  • @godaverthinaga.manoj.balaj6637

    Thank you mam very clear videos god bless you mam thank you mam

  • @sonic-ex7uf
    @sonic-ex7uf Před rokem +1

    Mam in case of ''we rock'' we need to provide a null character i guess otherwise it becomes a char array.

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

    i thanks you very much.

  • @assk1728
    @assk1728 Před 2 lety

    Super explanation mam

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

    Mam you smile is killer 🔥🔥🔥like ur teaching style 💖

  • @channelrtrallvideos571

    TQ for explaining to students

  • @santanusaha3762
    @santanusaha3762 Před 2 lety

    Mam this is too good . Mam thank you mam

  • @kshitijkumar319
    @kshitijkumar319 Před rokem

    thankyou maam

  • @sonalirajak227
    @sonalirajak227 Před 3 lety

    U r the best technical guruji

  • @user-ws6yj4ok7f
    @user-ws6yj4ok7f Před rokem +1

    mai commerce student hu magar pata nahi kyu kuch samajh nahi aaya par dekh ke achha laga

  • @jasmodinali
    @jasmodinali Před 2 lety

    Thank you mam

  • @harishmahara1934
    @harishmahara1934 Před rokem

    Tq much love

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

    Thanks Ma'am ✨

  • @sandaliyasara6000
    @sandaliyasara6000 Před rokem

    Thanks from Sri Lanka 🇱🇰 ❤

  • @AtulEditz-fz8oc
    @AtulEditz-fz8oc Před 8 měsíci

    😊 thanks mam to solve my query.

  • @GokilaT-vs9po
    @GokilaT-vs9po Před 8 měsíci

    Good explanation mam❤

  • @funworld3530
    @funworld3530 Před 2 lety

    Thank you ma'am

  • @nilammhetre5897
    @nilammhetre5897 Před 2 lety

    Thank you so much mam..

  • @Thanusree234
    @Thanusree234 Před 3 lety

    Thanks

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

    thank you

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

    Jenny lecture and Naresh IT both r best....🙏🙏

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

    • @venunaik1917
      @venunaik1917 Před rokem

      Jenny mam lectures are best than naresh it..

  • @ravip98670
    @ravip98670 Před 2 lety

    Thank you

  • @rahulgillsabb390
    @rahulgillsabb390 Před 2 lety

    Thanks 👍

  • @haleemasadia5108
    @haleemasadia5108 Před rokem

    Mam you are great personality

  • @Z.mahesh6748
    @Z.mahesh6748 Před 4 měsíci +1

    Exams are near 😮
    No need to fear 😨
    When jenny mam is hear👍💪💪💪💪💪💪

  • @nitishkhatri7291
    @nitishkhatri7291 Před rokem

    🙏Thanks 👌✨

  • @manasvilondhe3998
    @manasvilondhe3998 Před 4 měsíci +2

    All are valid except s3

  • @rohitmalik7045
    @rohitmalik7045 Před 2 lety

    Thank you akka

  • @prabirmaji185
    @prabirmaji185 Před 2 lety

    How will you enter single one by one characters in character array using for loop

  • @abdulrehman9441
    @abdulrehman9441 Před rokem

    Thank u mam

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

    Love u mam😍

  • @atikrehamanatikrehaman6775

    Your content so helpful and java course start please ma'am

  • @priyanshugupta7402
    @priyanshugupta7402 Před rokem

    All are valid

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

    Super 👌👌👌 mam,keep going on...

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

  • @jagadeeshkj5561
    @jagadeeshkj5561 Před 2 lety +4

    S3[5] = "Hello" is not having enough storage for the string, as given strings always ends with "\0"

  • @safwanbinhasan6445
    @safwanbinhasan6445 Před 4 měsíci

    Mam your explanation is very good

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

    All are allowed expect for
    char s3 [5] = "hello"; for this the size of the array should be 6 to add null character also at the end.
    Size of 2nd one is 11bytes
    and
    size of 4th one is 6bytes

    • @samsum1959
      @samsum1959 Před 2 lety

      s3 is allowed even if we dont provide null character(null character not necessary.. compiler will assign null character)
      s2 size would be 12bytes (compiler will assign.... as mentioned above)

    • @hariparuchuru3858
      @hariparuchuru3858 Před 2 lety

      For second one it's 11bytes naaaa

    • @samsum1959
      @samsum1959 Před 2 lety

      @@hariparuchuru3858 no its 12.
      2*6(h,e,l,l,o,\0) -->12

    • @samsum1959
      @samsum1959 Před 2 lety

      run below code for better understanding, brother
      #include
      int main()
      {
      int b;
      char a[]="12345678910";
      b=sizeof(a)/sizeof(a[0]);
      printf("%d",b);
      return 0;
      }

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

    S1= allow
    S2=allow size=10
    S3=this is also allow but "hello" ke baad ek character garbage value print hogi
    S4=allow size=6
    S5=allow

    • @lakshsinghania
      @lakshsinghania Před rokem +1

      the size of s2 will be 11 not 10
      otherwise it will show a warning message and print 1234567891 not 12345678910

    • @lakshsinghania
      @lakshsinghania Před rokem

      but as maam said in her next video she took the string as "Jayanti Khatri" and then she said that the size should be atleast 15 not 14
      so if we see here than for s2 the size should be 12 and s3 is not allowed because the size should be 6
      if u run it and specify the size as 11 and 5 for s2 and s3 it will work , idk how

    • @ja3r
      @ja3r Před rokem

      @@lakshsinghania I have run s2 and s3 on decoder compiler and it is giving same size in output

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

    Classes are going superb 👍mam.
    But still I want to request you to upload 2 to 3 videoes per day as I want to complete atleast 1 topic per day as I am giving time around 8 to 12 hours per day in studying coding

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/JK1j1R8ukCk/video.html

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

      in which year u are bro?or u r not in college? plz reply

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

    Thanku

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/JK1j1R8ukCk/video.html

  • @Ankit-iq9sr
    @Ankit-iq9sr Před 3 lety +1

    Thank you Ma'am

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/sStlBoYbaHs/video.html

  • @39rahulsharma52
    @39rahulsharma52 Před 3 lety +1

    Thanks so much mam

    • @computer5548
      @computer5548 Před 3 lety

      czcams.com/video/vzrbC4e7TLc/video.html

  • @prakratikapil5415
    @prakratikapil5415 Před 2 lety

    mam thankyou thankyou so much

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

    Ma'am can you upload next video on the topic of algorithms?

  • @varshal6856
    @varshal6856 Před 2 lety

    Ty ma'am 🥰

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

    char comment[SIZE] = "thank you so much Jenny. Loved your video \0";

  • @dhruvmalik8052
    @dhruvmalik8052 Před 2 lety

    yeah badiya tha guru

  • @741ibrahim2
    @741ibrahim2 Před 3 lety

    1 ans might be an error because in " double coation " genereally we dont se commas insted of spaces

  • @lifechanging3642
    @lifechanging3642 Před 2 lety

    Very nice