C_63 Strings in C-part 2 | Read a String using scanf and gets function

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 493

  • @giteshzemse2087
    @giteshzemse2087 ปีที่แล้ว +33

    I'm very fortunate i found your TH-cam channel. You're a very scholar, talented woman. You tells so many good things to be a programmer. While you're a programmer, it's my dream to become one and your channel is a blessings for me.

  • @aparnamane4899
    @aparnamane4899 2 ปีที่แล้ว +136

    string is not a data type in c but it is array of character in c and format specifier for string is %s.

  • @sarangbhasme4205
    @sarangbhasme4205 2 ปีที่แล้ว +13

    when you're teaching one good thing is your face is smiley it makes us happy. and felt like that nothing is impossible in life. Thank You So Much.

  • @nikitachaurasia11
    @nikitachaurasia11 3 ปีที่แล้ว +291

    Strings are not data type they are arrays of characters.

  • @Faithonurself
    @Faithonurself หลายเดือนก่อน +2

    Ur teaching is next level and now I am thinking about ur teacher who teaches u like this

  • @techieadi4377
    @techieadi4377 3 ปีที่แล้ว +10

    The C language doe
    s not provide an inbuilt data type for strings but it has an access specifier “%s” which can be used to directly print and read strings. You can see in the above program that string can also be read using a single scanf statement.

    • @itz__ahana_
      @itz__ahana_ 2 ปีที่แล้ว

      Bro pls help......
      Why we are not writing scanf("%s",&name)????
      Instead of scanf("%s",name)
      But in other programs we use &name
      Why we are not writing address of ....

    • @prithwihegde349
      @prithwihegde349 ปีที่แล้ว

      @@itz__ahana_ because string is a internal pointer which is pointing to base address of zerothindex of array

    • @Logan-ig7sm
      @Logan-ig7sm ปีที่แล้ว

      ​@@prithwihegde349but bhai array mai jo array name hota hai bo bhi to internal pointer hota hai uske pass bhi base address hota hai usme to use krna pdta hai &operator why?

  • @siddhianand3646
    @siddhianand3646 ปีที่แล้ว +22

    No, string is not consider as a data type in C but it represents as a character array in C.

  • @ganeshghantasala2679
    @ganeshghantasala2679 ปีที่แล้ว +2

    Your English is very clear to understand
    Thank you for your wonderful explanation

  • @Aptitude_guide
    @Aptitude_guide 3 ปีที่แล้ว +26

    omaagodd ,Your smiling face 😊and great way of teaching ☺️🤩

    • @kmanish2528
      @kmanish2528 2 ปีที่แล้ว

      Really that smile in man's face is really 😍🥰

  • @delllaptop519
    @delllaptop519 2 ปีที่แล้ว +5

    11 : 40 That Smile Kill Me Alredy And Now I Am Waiting For Anthor Smile 😊

  • @funworld3530
    @funworld3530 2 ปีที่แล้ว +6

    No, string is not a specific datatype in c like int , float , char , but string can be defined as a character array in c.

    • @itz__ahana_
      @itz__ahana_ 2 ปีที่แล้ว

      Bro pls help......
      Why we are not writing scanf("%s",&name)????
      Instead of scanf("%s",name)
      But in other programs we use &name
      Why we are not writing address of ....

  • @sudhirchaudhary2936
    @sudhirchaudhary2936 2 ปีที่แล้ว +4

    Mam you don't have to be uncomfortable in telling that your channel is the best channel.ofcourse your channel is the best channel..lots of love from Nepali students mam🇳🇵

  • @thecoding_cat21
    @thecoding_cat21 ปีที่แล้ว +1

    If you want to enter strings with spaces you can use "%[^
    ]" this format specifier instead of %s. It will allow you to enter strings with white spaces as input. Please inform me if I am wrong 🤔.

  • @talhashah3986
    @talhashah3986 2 ปีที่แล้ว +23

    String is not a data type in C
    But string is a data type in C++

  • @JKA-sf7ll
    @JKA-sf7ll 3 ปีที่แล้ว +6

    constant string will be in code segment (compile time)
    modificable string will be in stack (runtime)

  • @Apshorts2123
    @Apshorts2123 2 ปีที่แล้ว +9

    string is not a datatype in c but it is considered as an array of characters.
    It is a specific type of array whose datatype is always char.

  • @NU_SudeepaPatnaikpakki
    @NU_SudeepaPatnaikpakki 3 ปีที่แล้ว +4

    Mam...we can print entire string along with space using scanf......please use this format...
    Scanf("%[^
    ]s",str);
    This statement reads the input until newline occurs....

  • @mq4950
    @mq4950 3 ปีที่แล้ว +1

    I have subscribed your channel and I used to come to see your daily vedios as your smile and beauty is superb and lovingly❤💖💖💖💖

  • @mohdakramkhan4392
    @mohdakramkhan4392 2 ปีที่แล้ว +7

    String is not a data type in c.It is 1 D array of character.

  • @benspencer7491
    @benspencer7491 ปีที่แล้ว +19

    11:39 best moment of lecture

  • @rohitmodi9169
    @rohitmodi9169 ปีที่แล้ว +1

    It is not a data type ,it will only take the character values

  • @MSai-wc8rv
    @MSai-wc8rv 7 หลายเดือนก่อน +1

    string is not a data type in c but it is array of charecter in c and format specifier for string is %s

  • @keerthanas5634
    @keerthanas5634 ปีที่แล้ว +1

    No string is not a datatype it is used in header files #include

  • @mahendrab.k7278
    @mahendrab.k7278 ปีที่แล้ว +1

    Mam your smile literally made me fall in love with you ❤❤❤.
    Love and support from Nepal 🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵

  • @vishalborate9608
    @vishalborate9608 ปีที่แล้ว +2

    string is a character array, which is a known for a sequence of multiple characters ended by a special character null (\0) and its format specifier is %s

  • @erasamani2693
    @erasamani2693 8 หลายเดือนก่อน

    very good understanding seeing your videos more helpful

  • @nomuladivya3160
    @nomuladivya3160 2 ปีที่แล้ว +1

    Stings are not datatypes they are array of characters and we explicitly declare it as char

  • @rockstareditz4690
    @rockstareditz4690 3 ปีที่แล้ว +16

    😂😂
    Ma'am , straight to the point
    99% come to see you nd 1% come to learn
    But the thing is everyone at the end of the day
    Ur classes make us learn more nd more , u r lectures , topics u teach nd everything is super
    I only wonder in how we started learning soo muchfrm u r class though it is not our purpose
    Thank u soo much for the valuable classes nd u can ask every btech student who got backlog in c , nd placement Preparation playlist is dope

  • @chandan-x3n
    @chandan-x3n 3 หลายเดือนก่อน

    string is not a data type. but it is a sequence of character terminated with null character.

  • @prabhagupta2929
    @prabhagupta2929 ปีที่แล้ว +1

    Mam I was learning c from any other creator but I switched to your lectures as those lectures was not explained in detail,
    Btw loving your way of teaching.

  • @ՏGAMING-h9l
    @ՏGAMING-h9l 2 ปีที่แล้ว

    When you say right word on that time my heart was melting

  • @devanshshrimali2125
    @devanshshrimali2125 2 ปีที่แล้ว +2

    No stings is a not a data type in C. It is a array of characters.

  • @PranathiBendalam
    @PranathiBendalam 2 หลายเดือนก่อน

    String is not a data type..but we can represent it as a character array.

  • @36-muhammedshahinp64
    @36-muhammedshahinp64 ปีที่แล้ว

    your class is perfect. also your smile keep it your smail

  • @shuvamsahoo1130
    @shuvamsahoo1130 3 ปีที่แล้ว +3

    I was also teaching students on coaching ❤👍but your presentation is more student friendly mam

  • @jaga4123
    @jaga4123 ปีที่แล้ว

    Mam you are the best programming teacher mam , love you mam❤❤❤

  • @A.KSTUDIO755
    @A.KSTUDIO755 ปีที่แล้ว +1

    No strings are not data types. It is array which is terminated by null character

  • @b.jnanendravarma1636
    @b.jnanendravarma1636 10 หลายเดือนก่อน +1

    In C , string is a character of array but not a data type

  • @hakimabahnu7722
    @hakimabahnu7722 2 ปีที่แล้ว +1

    thank u soo much mam lots of love and respect from ladakh..😊🤗

  • @daughter_of_chitkute0611
    @daughter_of_chitkute0611 11 หลายเดือนก่อน +1

    No there is not such datatype called string in C so we use array of characters to represent it as a string.

  • @manjulabhajantri-q1q
    @manjulabhajantri-q1q 10 หลายเดือนก่อน +1

    No,string is not a datatype. But it is a character set of array

  • @kanchupatihemanth8216
    @kanchupatihemanth8216 2 ปีที่แล้ว +3

    Hi mam thank you for telling these class and your class are most useful for diploma 1st year students in Telangana and small request mam try to explain in telugu.

  • @gowthamireddy8604
    @gowthamireddy8604 10 หลายเดือนก่อน

    U r super maam u r explaining like wow.....

  • @arsh2228
    @arsh2228 2 ปีที่แล้ว +1

    mam u are such an inspiring personality

  • @yashhokte1020
    @yashhokte1020 3 ปีที่แล้ว +2

    String is not a data type we can considered string as the character arrays or it is an array of characters which is ended with the null character ('\0')..
    But the format specifier which is used to print the whole string is %s

  • @VinjamRajesh-vu9px
    @VinjamRajesh-vu9px 9 หลายเดือนก่อน +1

    string is not a data type in c but we can represent it with "char" data type is "%s".

  • @anesp.a913
    @anesp.a913 2 ปีที่แล้ว +1

    I hope you are my teacher in 2003 boring classes of Engg college...

  • @programmer1682
    @programmer1682 ปีที่แล้ว +2

    String is not a data type it is character type.

  • @gayatriborade9556
    @gayatriborade9556 2 ปีที่แล้ว +5

    string is not a datatype in c but it is a character array which ends with \0

  • @shanthakumarshanthu3928
    @shanthakumarshanthu3928 ปีที่แล้ว +1

    String is not a data type in c programming
    It is a collection of characters

  • @arindamroy5681
    @arindamroy5681 ปีที่แล้ว +1

    String is not a data types in c language but string is the character array

  • @srikaryenugula
    @srikaryenugula ปีที่แล้ว +1

    Srikar diploma in ec is also watching your videos!

  • @obul231
    @obul231 2 ปีที่แล้ว

    Your voice 🌹,smile 🌹 &teaching 🌹
    I'm ur fan 💖

  • @kuppalasindhuja7362
    @kuppalasindhuja7362 ปีที่แล้ว +1

    String is not a datatyoe it is an array of character

  • @laxmikantbotkewar4191
    @laxmikantbotkewar4191 2 ปีที่แล้ว

    we can use scanf( "%[^
    ]s" , name) it will fetch till new line character.

  • @aakashakshat4624
    @aakashakshat4624 2 ปีที่แล้ว +1

    No strings are not datatype in C , it is a 1D array chracters.

  • @amnakhanamnakhan8524
    @amnakhanamnakhan8524 ปีที่แล้ว +1

    String is not date type it is the array of character..

  • @christopheroche6103
    @christopheroche6103 2 ปีที่แล้ว +1

    strings are collection of character, it is not a data type in C program.

  • @Vijayee
    @Vijayee 3 ปีที่แล้ว +3

    String is not data type, String is constant of character and enclosed character in double quotes

  • @maheenfatima7566
    @maheenfatima7566 2 ปีที่แล้ว +1

    string is an array of characters not a data type

  • @iAmAjayTeli
    @iAmAjayTeli 2 ปีที่แล้ว +3

    Mam you bring smile to our face
    You are a great teacher ❤️❤️❤️ with great smile on your face 😁😁
    Your teaching style is almostly differ from others

  • @lakshmanlakshman9031
    @lakshmanlakshman9031 ปีที่แล้ว +2

    Not a datatype in C it is a array of character

  • @PramodKumar-qz9ex
    @PramodKumar-qz9ex ปีที่แล้ว

    I fall love with c mam💕💕

  • @vivekgajara8418
    @vivekgajara8418 3 ปีที่แล้ว +3

    Mam there is no data type for string. There is just a format specifier %s to print string

  • @Abhishek_GP
    @Abhishek_GP 8 หลายเดือนก่อน +1

    no string is an array of character in c and terminated by the null character.

  • @LE-Anjali
    @LE-Anjali ปีที่แล้ว +1

    No,string is not a data type in c.but it gives array of character.

  • @vikashvk5320
    @vikashvk5320 2 ปีที่แล้ว

    Practiced all these commands before watching the video and ruined turbo c++
    Now it shows negative colour and blinks like tuni bulbs.finally reinstalled it.

  • @adedokunolaitan4376
    @adedokunolaitan4376 2 ปีที่แล้ว +1

    string is not a datatype in C. Just an array of the datetype char

  • @debojitacharjee
    @debojitacharjee 2 ปีที่แล้ว +4

    *FOR STRINGS WE SHOULD USE FOR LOOP TO AVOID THE BUFFER OVERFLOW* - initializing the array directly using scanf or gets is not a standard rule and are not for using with strings but only with characters using for loops

  • @devSackey
    @devSackey ปีที่แล้ว +1

    In c programming a string is not considered as a datatype but an array of characters (char)

  • @story-tamil
    @story-tamil 2 ปีที่แล้ว +2

    Very nice your explanation is 👌👌👌Thanks 😊

  • @princemaurya9823
    @princemaurya9823 3 ปีที่แล้ว +1

    String is not a data type in c bt we can represent character array in c...

  • @JyothiD-k2d
    @JyothiD-k2d 11 หลายเดือนก่อน +1

    String is not a data type mam
    It is a character array

  • @kirthi7606
    @kirthi7606 ปีที่แล้ว +1

    string is not a data type,it is a character array in C.

  • @202_abhishek2
    @202_abhishek2 2 ปีที่แล้ว +1

    no ,string is array of characters in c ,it always ends with null character.

  • @gio55964
    @gio55964 3 ปีที่แล้ว

    mam, i am from Bangladesh.you are best teacher in youtube.

  • @godsdomain.
    @godsdomain. 8 หลายเดือนก่อน +1

    string is not a data type in c lang. it is an array of character in c

  • @mailtoamith
    @mailtoamith 5 หลายเดือนก่อน

    String is not a data type in c but it is array character in c language.

  • @dhruvithakkar4278
    @dhruvithakkar4278 ปีที่แล้ว +1

    no string is not a data type but mostly equal to character array.

  • @shivendra3019
    @shivendra3019 3 ปีที่แล้ว +2

    String is an array of characters in C but it is not an explicit datatype unlike in Java and other programming languages etc.

    • @nileshbhaskar9010
      @nileshbhaskar9010 3 ปีที่แล้ว

      String is a class in java, not primitive data type

    • @shivendra3019
      @shivendra3019 3 ปีที่แล้ว +1

      @@nileshbhaskar9010 It is a Class Type and not Wrapper as it does not have a parallel primitive type.

    • @nileshbhaskar9010
      @nileshbhaskar9010 3 ปีที่แล้ว

      @@shivendra3019 no it's not

  • @DheerajKumar-jv3ug
    @DheerajKumar-jv3ug 3 ปีที่แล้ว +1

    string is not a data types they are array of charactor

  • @sachinghuge6194
    @sachinghuge6194 2 ปีที่แล้ว

    just want to say "you are the best "

  • @babunaik371
    @babunaik371 ปีที่แล้ว +2

    Good evening mam, strings are not a data type in c.

  • @SumangalaSipoy-tj3ey
    @SumangalaSipoy-tj3ey หลายเดือนก่อน

    String is not a data type in c but it is a array of characters

  • @manavsilondon
    @manavsilondon 6 หลายเดือนก่อน

    string is not data type in c but it is the array of characters

  • @AsifRaza-tc8kt
    @AsifRaza-tc8kt 2 ปีที่แล้ว +2

    string is not a datatype in C. It is the character array in C

  • @sunnyjaiswal7746
    @sunnyjaiswal7746 2 ปีที่แล้ว +1

    NO, string is not a seprate datatype in C but it used as character datatype in C

  • @anshikashahi9911
    @anshikashahi9911 2 ปีที่แล้ว

    buffer overflow is the drawback of string

  • @aakashrajput7860
    @aakashrajput7860 ปีที่แล้ว +2

    Strings:not datatype
    They r arrays of characters

  • @Nikhilrao354
    @Nikhilrao354 3 ปีที่แล้ว +2

    I am completed my 12 , when I search theorem of class 9 of my brother so I am find your vedio , and I am addicted your vedio 🤭

  • @AmitGupta-yy3ls
    @AmitGupta-yy3ls 4 หลายเดือนก่อน

    Your smile is more confusing rather than your teaching😅 But thanku so much mam🎉❤

  • @narenderyadav5952
    @narenderyadav5952 ปีที่แล้ว

    no, it will not allow to type beyond size in scanf & gets

  • @vigneshk9598
    @vigneshk9598 2 ปีที่แล้ว

    madam your teaching is good

  • @kwameanati
    @kwameanati ปีที่แล้ว +3

    String is not a data type.

  • @PraneethaMorla
    @PraneethaMorla 2 หลายเดือนก่อน

    string is not a datatype in c but array of character in c

  • @sowmiyar36
    @sowmiyar36 ปีที่แล้ว

    String is a derived data type

  • @almasshaik5484
    @almasshaik5484 3 ปีที่แล้ว +1

    String is not data type it's a character constants array

  • @walkwithme_P62
    @walkwithme_P62 3 ปีที่แล้ว

    It is an character array

  • @Tejash_Gohel
    @Tejash_Gohel 3 ปีที่แล้ว

    aapke lecture me apnapan feel hota he

  • @Shawaz11
    @Shawaz11 3 ปีที่แล้ว

    Good evening mam and mam you are best mentor and you are a actor 🤗 very quit quit moments. In everytime. 🤗