C_23 Formatted Input Functions in C Language || C Programming

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 219

  • @umairmalik7875
    @umairmalik7875 3 роки тому +44

    Polite speaking to deliver lecture with soft voice.I'm glad to listen the topics.
    Love you nice teacher for me.

  • @mounikalukalapu7587
    @mounikalukalapu7587 3 роки тому +23

    She deserves more likes 🥺 and even she is not asking for that

  • @blueglacier007
    @blueglacier007 Рік тому +12

    I have been following through your c programming course and I'm impressed by your clear and concise explanation.THANK YOU JENNY

  • @vinayaksharma945
    @vinayaksharma945 3 роки тому +71

    Mam please give a ❤️ to.this comment I watch ur lectures daily plsss plss mam

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Рік тому +5

    If you print x it will give you 1 for int, and 1.000000 for float. But it all depends to the amount of format specifiers you have in scanf. If you have 3 format specifiers, then x will be 3.
    Thanks very much mam. May God bless.

  • @madhumalipremarathna3038
    @madhumalipremarathna3038 3 роки тому +47

    11:27
    The comma act as a separator there.
    19:30
    The output for x will be 2
    if we write ,
    scanf("%d" , &a , &b) ;
    sum will be give some garbage value 😂 and x will give 1.
    if we write ,
    scanf("%d %d %d" , &a , &b) ;
    It will get the input from user but will not return any value for sum or x.

  • @krupa1963
    @krupa1963 3 роки тому +20

    11:22
    comma is acting as a *separator*
    19:11
    X will be assigned with 2 madam

  • @SamuelValentino-q8v
    @SamuelValentino-q8v Місяць тому

    Have just started Function in C programming. All thanks to Mam✍

  • @riyasharan8959
    @riyasharan8959 Рік тому

    unbeatable playlist of c language ,ever found in youtube learning c from this playlist in 2023

  • @18fatima15
    @18fatima15 8 місяців тому +1

    17:35 2
    18:15
    #include
    int main()
    {
    int a,b,x;
    x=scanf("%d",&a,&b);
    printf("%d",x);
    return 0;
    }
    output:
    17 18
    1
    #include
    int main()
    {
    int a,b,x;
    x=scanf("%d %d %d",&a,&b);
    printf("%d",x);
    return 0;
    }
    output:
    12 13 14
    --------------------------------
    Process exited after 8.303 seconds with return value 3221225477
    Press any key to continue . . .

  • @santoshreigns6908
    @santoshreigns6908 3 роки тому +19

    Mam ur teaching way is superb my request for you to make lectures on python also 🙏

  • @neutral_mindset
    @neutral_mindset 3 роки тому +4

    Ma'am communication skills and attitude op 😍😍😍

  • @harmeetsingh2976
    @harmeetsingh2976 3 роки тому +12

    Mam you are the great teacher and explains all the topics clearly without any doubt
    very well I am beginner for this subject because I am student of computer science and engineering

  • @ahmedhesain4271
    @ahmedhesain4271 2 роки тому +6

    x value will be 2 and that means the number of format specifier you taking the user input using them.

  • @subha2860
    @subha2860 2 місяці тому

    You are such a fabulous teacher
    I am easily able to learn because of you
    Thank you mam and please support us like this 😊

  • @graphicslearn8568
    @graphicslearn8568 3 роки тому +6

    MA'AM you r teaching method is very nice THANKS FROM PAKISTAN

  • @techblaze516
    @techblaze516 2 роки тому +4

    'x' here, will return the number of inputs taken by the scanf() function.
    And no other errors in any other case.

  • @HardikBarot-ud2ui
    @HardikBarot-ud2ui Рік тому +4

    x will give the total of "control string", %d %d %f %s total value of X is 4...

  • @AnkitYadav-cj6ut
    @AnkitYadav-cj6ut 2 роки тому +15

    When legend teachers get their mistake they says" I am checking that you are attentive or not"😁
    But mam you are a awesome teacher

  • @alone_starx
    @alone_starx Місяць тому +1

    Loved it ❤

  • @akalya5050
    @akalya5050 3 роки тому +2

    I m really thankful to you mam...Your way of explanation again and again I love it...You are really great mam..💯

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 Рік тому

    Watched and Understood ❤

  • @HaniHani-mu6ru
    @HaniHani-mu6ru 2 роки тому +1

    mam one thing about is ur a " more then pro ".........🤩

  • @harshpandey8159
    @harshpandey8159 3 роки тому +3

    Ma'am u gone to core amazing maam

  • @அனுபவம்
    @அனுபவம் Рік тому +1

    very nice explain 😊

  • @brindhavenugopal4395
    @brindhavenugopal4395 3 роки тому +4

    (11.22)-comma is a separator mam

  • @cheklastudio11
    @cheklastudio11 11 місяців тому

    Hi mam your lecture is very clear than our college lecture

  • @Hariharan_Karthikeyan
    @Hariharan_Karthikeyan 3 роки тому +13

    Ma'am can you just make videos on Embedded C ? It might very useful for us

  • @scifoga
    @scifoga 2 роки тому +1

    Thanks for your explaination
    Thanks a bunch...

  • @sandeepoad658
    @sandeepoad658 2 роки тому

    Thankyou maya love from Nepal

  • @SadhanaSharma
    @SadhanaSharma 3 роки тому +2

    19:08 output will be 2

  • @shacks05
    @shacks05 3 роки тому +17

    I kindly Request . To Pls Make Videos on Python As soon as possible mam ❤️ . Because we are Addicted to u 🙏☺️

    • @aniketthorat9732
      @aniketthorat9732 3 роки тому

      See This Playlist : ua-cam.com/play/PLl2gq7invFLBhXOhUaBOX0dJ3r1eIpJpT.html #techblooded

    • @adithistar2189
      @adithistar2189 3 роки тому +1

      @@aniketthorat9732 thank you 👍🥺✨

  • @kathirvelanm991
    @kathirvelanm991 3 роки тому +5

    Mam please continue DBMS and operating system mam , please...

  • @pallavipatil1148
    @pallavipatil1148 3 роки тому +2

    Nice explain mam

  • @abhishekkumarjha4314
    @abhishekkumarjha4314 3 роки тому +2

    Tqq Mam.

  • @collinsotieno511
    @collinsotieno511 8 місяців тому +1

    i saw the eror before you told mee
    😊😁

  • @SashankSasi-om4el
    @SashankSasi-om4el 7 місяців тому +1

    Super madam explain nice madam

  • @mdnazamahmad550
    @mdnazamahmad550 3 роки тому +3

    Mam is so beautiful😍

  • @yogasankar2032
    @yogasankar2032 3 роки тому +5

    Mam please upload towers of honoi problem using data structures

  • @KalingaRatnaDas
    @KalingaRatnaDas Рік тому

    Thank you mam ❤

  • @pateljainish4692
    @pateljainish4692 2 роки тому

    Mem your looking very beautiful that’s why I’m watching your video ☺️

  • @sunandamallick4310
    @sunandamallick4310 3 роки тому +2

    I kindly request to please make videos on c programming function as soon as possible mam🙏.🎉

  • @SadhanaSharma
    @SadhanaSharma 3 роки тому +2

    11:20 comma is acting as a seperator

  • @maheshdubal8369
    @maheshdubal8369 3 роки тому +4

    Mam can you make a video for user defined functions in which function call is there

  • @swayam50
    @swayam50 3 роки тому +1

    Nice

  • @tps8470
    @tps8470 2 роки тому +1

    Thanks a lot Mam

  • @veeranna4200
    @veeranna4200 3 роки тому +2

    First comment😍😍😍😍😍

  • @thopbgm38
    @thopbgm38 3 роки тому +2

    Keep all videos at a single place difficult to search

  • @Rajeevkumar-cm4mn
    @Rajeevkumar-cm4mn Рік тому

    nice 👍

  • @aniketkumar3126
    @aniketkumar3126 3 роки тому +2

    5th comment
    Nice 👍

    • @ranjeetkumarprajapati1756
      @ranjeetkumarprajapati1756 3 роки тому

      @@vivekprasad_official_music2267 nahi nai ye kya h.. mene pucha kya comment me link diya apne...

  • @shubmishra7134
    @shubmishra7134 3 роки тому +2

    𝕸𝖆𝖒 𝕻𝖗𝖔𝖏𝖊𝖈𝖙𝖘 𝖇𝖍𝖎 𝖇𝖆𝖙𝖆𝖓𝖆 𝕱𝖔𝖗 𝖎𝖓𝖙𝖊𝖗𝖓𝖘𝖍𝖎𝖕 𝖑𝖊𝖛𝖊𝖑.

  • @ececse
    @ececse 2 роки тому +1

    thankyou mam🙏

  • @ranjeetkumarprajapati1756
    @ranjeetkumarprajapati1756 3 роки тому +2

    Mam, SQL ki full fom structure query language hoti h.. kya kisi condition me iski full form standard query language ho skti h ya nahi....

  • @praneethtanguturu2922
    @praneethtanguturu2922 2 роки тому +3

    Mam in the programm ,if i use only main() instead of void main() it is getting error why?

  • @Anjanpradha2754
    @Anjanpradha2754 3 роки тому +1

    Thank you mam

  • @praneethtanguturu2922
    @praneethtanguturu2922 2 роки тому +1

    Mam when i want to use void main and int main

  • @tithighosh2169
    @tithighosh2169 3 роки тому +5

    Ma'am please upload videos of pointers, structure, union, enum, files handling, command line argument in c

  • @rakethram8423
    @rakethram8423 3 роки тому

    2:22 ad ends

  • @souravbhagat1358
    @souravbhagat1358 3 роки тому +2

    Mam plz make a vedio lecture series on Adavanced Algorithm design you uplaoded the vedios on algorithm but plz upalod remaining lectures on Algorithm

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 роки тому +2

    🔥🔥🔥

  • @ashishxsoni
    @ashishxsoni Рік тому

    Gr8

  • @ShivamSingh-gk3qu
    @ShivamSingh-gk3qu 3 роки тому +2

    I got the error 😂😂😂

  • @saikanth4195
    @saikanth4195 3 роки тому +3

    Video starts 2:23

  • @syedalifathimaa9618
    @syedalifathimaa9618 3 роки тому +17

    x = scanf("%d %d",&a,&d); x has 2
    y = scanf("%d",&b,&e); y has 1 with warning - too many arguments
    z = scanf("%d %d %d",&c,&f); warning - %d expects int argument
    After giving input, then goes to segmentation fault!

  • @JESUS_FOR_EVERYTHING
    @JESUS_FOR_EVERYTHING Рік тому +1

    mam scanf(int=d,float=f ,char=c why float= f and char c but int=i but we have use d yyyy???

  • @15easy
    @15easy 3 роки тому +3

    Without declaration int main
    Program isn't running

  • @sridevi9353
    @sridevi9353 3 роки тому +2

    Mam are you taking course for c,c++ and java

  • @sherin_nila277
    @sherin_nila277 3 роки тому +1

    Mam please upload the video for pointers

  • @dibyajyotipradhan3481
    @dibyajyotipradhan3481 2 роки тому

    Mam aap ko dekhne ke baad class pe man nehi lag raha hey😅😅😅😂

  • @shahidnawaz3832
    @shahidnawaz3832 3 роки тому

    Really thAnks

  • @karthickambrish
    @karthickambrish 3 роки тому +1

    Comma is used as a operator mam...???

  • @PsameertanayaPatro
    @PsameertanayaPatro Рік тому

    11:20

  • @goldenvideo6587
    @goldenvideo6587 3 роки тому +3

    Mam Hindi medium walo ko bhi pdaya kariye

  • @reganakandwanaho1223
    @reganakandwanaho1223 2 роки тому

    The x gives the number of operands taking part in the sum function

  • @jackbhai-j8u
    @jackbhai-j8u Рік тому

    Comma is acting as a separator in scanf() mam

  • @swayamgupta3188
    @swayamgupta3188 2 місяці тому

    After adding x it is not giving us a garbage value

  • @tellalavanya3819
    @tellalavanya3819 Рік тому

    In this scanf() function we can skip some input using* symbol plz explained with examples

  • @scifoga
    @scifoga 2 роки тому

    Can I use Blankspace between "control/conversion string"??

  • @nayanraut1412
    @nayanraut1412 2 роки тому +1

    how to read the scanf function body

  • @ranveerbairwa6011
    @ranveerbairwa6011 3 роки тому +2

    Mem live class kab lagti hai aapki

  • @MuhammadHassan1458-v8y
    @MuhammadHassan1458-v8y Рік тому

    Is it mandatory to use ampersand in scanf() ? Because i have noticed no error occours if we omit ampersand

  • @mani6896
    @mani6896 2 роки тому

    2:23

  • @motivation_hub117
    @motivation_hub117 3 роки тому +1

    Mam why can't we use only printf

  • @ashwani8721
    @ashwani8721 3 роки тому +2

    1st view

  • @harshvardhansharma22
    @harshvardhansharma22 3 роки тому +1

    , is working as seprator

  • @honey-vg2vk
    @honey-vg2vk 2 роки тому +2

    I am getting -1 for X=scanf("%d%d",&a,&b);
    Printf("%d",X);

  • @furzi1432
    @furzi1432 3 роки тому +31

    Can you tell about [^
    ] in scanf and %*c and %[^
    ]%*c in scanf plss 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

    • @farzanareefatraha8635
      @farzanareefatraha8635 3 роки тому +5

      (^)- this symbol is called circumflex.
      Normally if %[ ... ] is used then scanning is done till whatever(here, ...) is written inside the 3rd bracket is found in input. The scanning gets stopped just the moment when any character outside “...” this range is found.
      For instance,
      Say
      char x[]=“hello”;
      printf(“%s
      ”,x);
      scanf(“%[abcd]”,x);
      printf(“%s
      ”,x);
      Here, in test case
      #1. cadbcadbaefgchs
      Output :
      _________
      hello
      cadbcadba
      #2. jkalehcd
      Output :
      ________
      hello
      hello
      Why?
      In T#1 the scanf function scanned(and replaced the original string “hello”) our input string till it found [abcd] in the input string “cadbcadbaefgchs” and just when it encountered a letter outside the range [abcd], in this case, it is ‘e’, it stopped scanning and put ‘
      ’ at the end. So after scanning x[]=“cadbcadba”.
      In T#2 the first character scanf encounters is ‘j’ which is out of [abcd] range so it doesn’t scan and replace original string “hello” at all and hence x remains x[]=“hello”.
      NOW
      Whenever we use circumflex(^) here, i.e. %[^...] , it tells scanf to scan anything unless anything from (...) portion is encountered. As soon as any character/digit from (...) portion is encountered, scanf will stop scanning and put a ‘
      ’ and end the string right there.
      For instance, for T#2 now if we modify the code to
      char x[]=“hello”;
      printf(“%s
      ”,x);
      scanf(“%[^abcd]”,x);
      printf(“%s
      ”,x);
      our output will (lemme remind I am writing the output for T#2, if you understand what I am blabbering here, you may reply what you think will be the output for T#1 in the comment section :3)
      Output for T#2
      ________________
      hello
      jk
      Why?
      The scanf function scanned upto “jk” but then it encountered ‘a’ which belongs to [abcd] range and this time as we have used “^” before [abcd] our scanf will not scan anything from this range and if it encounters a/b/c/d it will stop scanning. And that’s what happened when it encountered ‘a’ after scanning “jk”; it stopped scanning further and replaced “hello” with “jk”.
      I know this was a whole lot of blabbering :3. But now can you figure out how “[^
      ]” works?
      PAUSE & THINK
      HINT :
      ---

      indicates a new line(simply, enter key). So when we are using ^
      we are indicating keep scanning the string till you encounter a new line and don’t stop before you encounter new line. So when you are entering
      HELLO WORLD.(new line/enter key)
      I AM AN ALIEN.(newline/enter key)
      Your code keeps scanning the string till it finds the first new line which is after “.” Of “HELLO WORLD.” and then stops scanning and prints “HELLO WORLD”
      For instance, now if we modify the earlier code as
      char x[]=“hello”;
      printf(“%s
      ”,x);
      scanf(“%[^
      ]”,x);
      printf(“%s
      ”,x);
      and if you give input :
      Input:
      ---
      HELLO WORLD.
      I AM AN ALIEN.
      Output :
      ----
      hello
      HELLO WORLD.

    • @furzi1432
      @furzi1432 3 роки тому +1

      @@farzanareefatraha8635 Thankyou very much bhaiya 👍👍🥺🥺

    • @Prajwal.Suresh
      @Prajwal.Suresh 3 роки тому +4

      @@farzanareefatraha8635 😶 i am first year student and understand only little bit in this bro

    • @farzanareefatraha8635
      @farzanareefatraha8635 3 роки тому +1

      @@Prajwal.Suresh I am also a first year student bro 😂
      DW! Search and Read a little more about it and I am sure you will understand it. At first when my professor told us about it I didn’t also get it but at the end HAD to understand it as he compelled us 😕.

    • @Prajwal.Suresh
      @Prajwal.Suresh 3 роки тому

      @@farzanareefatraha8635 ok bro 🙄

  • @julfikarali3986
    @julfikarali3986 Рік тому

    ❤❤❤❤

  • @nitish2001nb
    @nitish2001nb 3 роки тому +1

    mam real examples k sath illustrate kia kijiye pls

  • @honey-vg2vk
    @honey-vg2vk 2 роки тому +1

    Comma acts as a separator

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Рік тому

    Mam, can i use scanf without & if my variable is a pointer ?
    example:
    int*a;
    scanf("%d",a);

    • @Fable_o
      @Fable_o 11 місяців тому

      I think in this case it will give the address of the variable a. I am not sure though.

  • @kiranchaudhary9949
    @kiranchaudhary9949 2 роки тому +1

    comma is acting as a separator

  • @Jacky09a
    @Jacky09a Рік тому

    Yes mam we have got your error before you told us

  • @nagarjunakammara5796
    @nagarjunakammara5796 Рік тому

    Medam is it true presently every one following ANSI C language?

  • @kiranchaudhary9949
    @kiranchaudhary9949 2 роки тому

    here the value of x is 2 same as how many times scanf takes input from user.

  • @user-Mk0908
    @user-Mk0908 3 роки тому +8

    I wil send u gift mam tel me &jenny printf(“address of jenny “);& scanf( “phne number”) 🤣😛 Never got e perfect-brainer lecturer as u In my entire btech 👍👏👌u teach concepts so clear of any confusion & perfectly wit examples & accurate on piont wit its realtime use great 👏✌️

  • @pranaychendekar456
    @pranaychendekar456 2 роки тому +1

    Yes ma'am I got error😂

  • @syedalifathimaa9618
    @syedalifathimaa9618 3 роки тому +1

    int a;
    scanf("%f",&a);
    but when I'm printing a, it is showing some unwanted number, not 0.....can anyone tell me about it?

    • @atib1980
      @atib1980 3 роки тому +1

      scanf("%f", &a); requires an address of a float variable to be passed to it. Replace the keyword int with float in your program's source code. Recompile it and run it. You can also declare 'a' as a double variable and modify the %f format specifier to %lf. The reason your program printed some garbage value is because floating point values are stored in a completely different format (IEEE-754 standard) in the computer's memory than the regular whole number types like short, int, long, long long.

    • @syedalifathimaa9618
      @syedalifathimaa9618 3 роки тому +1

      @@atib1980 Thanks for the info...I voluntarily did the mistake because mam told us if we try to print the integer value using the float format specifier, it will print 0 but it actually prints garbage value. It isn't an issue?

    • @syedalifathimaa9618
      @syedalifathimaa9618 3 роки тому

      @@atib1980, Can you tell me why it's printing garbage value instead of 0?

    • @atib1980
      @atib1980 3 роки тому +4

      @@syedalifathimaa9618 #include
      int main() {
      int a = 10;
      scanf("%f", &a);
      printf("a = %f
      ", a);
      return 0;
      }
      The reason why it's printing garbage value is because you're trying to read a floating point value (%f) into a local variable of type int (a variable of type int is stored in a completely different way than a variable of a standard floating type (float, double or long double are represented in the computer's memory using the IEEE-754 standard) and when you try to print the value of local variable 'a' (int) using the %f format specifier the program will again print the same garbage value that you tried to store into the local variable 'a' (int) using scanf with "%f". Now depending upon which compiler you use to compile this simple program, you will get different results. gcc and clang will always print 0 even if you specify a bunch of flags for various types of compile and link-time optimizations. The only compiler that behaved differently was the Visual C/C++ compiler from Microsoft. With MSVC (cl.exe /nologo /W4 /Fetest simple.c) I managed to print some garbage value as a result of compiling and running the aforementioned simple program (simple.c). Compiling simple.c using the MS Visual C/C++ compiler 'cl.exe' I always ended up getting some garbage value with or without explicitly initalizing the local int variable 'a' to some predefined value (int a = 10;). But when I compiled the program with various optimization flags (/O2 /Ot /Ox /Ob2 /Oy /Oi) turned on, the compiled program behaved the same way as if I'd compiled it with gcc or clang, giving me the same 0 value as ouput. My conclusion is that the MS VC/C++ compiler will always print 0 for an int value using printf("%f
      ", a) no matter what you read into the int variable using scanf("%f", &a). In fact after debugging the compiled programs in Ollydgb and Ida pro I noticed that the scanf("%f", &a) statement in the compiled programs that I got using gcc (with or without optimization flags enabled), clang (with or without optimization flags enabled) or MSVC with various optimization flags turned on didn't even modify the variable's value ('a'). It stayed the same (10). However when the program tried to print an integer value using printf("%f
      ", a), it printed 0 instead of 10.

    • @syedalifathimaa9618
      @syedalifathimaa9618 3 роки тому

      @@atib1980 Thanks....It's really helpful, may I know who you are?

  • @hariparuchuru3858
    @hariparuchuru3858 2 роки тому +1

    comma is acting as separator

  • @ayushyadav4180
    @ayushyadav4180 3 роки тому +1

    ma'am aap lockdown me moti ho gaye ho :)