C_26 Unformatted Output Functions in C | C Programming Tutorials

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

КОМЕНТАРІ • 119

  • @fuadhamedmohamed4311
    @fuadhamedmohamed4311 2 роки тому +82

    puts ( 'a' ); it will give you error but if you put double qoutation puts ( "a" ); it will give you output a

    • @devSackey
      @devSackey Рік тому +16

      yeah because puts() write sequence of character(string) to the output not a single character. Also note that single quote is for a single character whilst quote quotes are for strings

    • @MaheshVollipimahesh
      @MaheshVollipimahesh 6 місяців тому

      Bro putchar and putch homes only single character so we Can Assigned to 'a' and puts holds entire character that you enter it means we Assigned to "a"

  • @pravinj2017
    @pravinj2017 3 роки тому +101

    Formatted input and output functions contain format specifier in their syntax. Unformatted input and output functions do not contain format specifier in their syntax. They are used for storing data more user friendly. They are used for storing data more compactly

  • @codewithcliffton7711
    @codewithcliffton7711 2 роки тому +40

    Our college teachers RIP🤣🤣🤣.I m really glad to say that I understand literary every concept which you teach..May almighty god bless you with good health to deliver your knowledge to us🙂😇😇😇😇

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

    Really amazing teaching. As commented by another friend before, "In the paid version, it's rare to find such a "Crystal clear" version of learning". Great service...

  • @debojitacharjee
    @debojitacharjee 3 роки тому +25

    *THERE IS A DIFFERENCE BETWEEN putchar() AND putch()* - putchar() belongs to standard C library (stdio.h), but putch() belongs to POSIX library (conio.h). Putchar() can print any single character of C character set (including the 31 non-printable characters), but putch() can only print a single alphanumeric character. getch()/Conio.h is not supported by many C compilers like GCC, and is used by DOS/Windows based compilers to make use of the I/O console. That's why it's not supported by UNIX and Linux.

    • @choudhary.0402
      @choudhary.0402 3 роки тому +1

      What is the difference b/w c character set and all alphanumeric characters I think they are same

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

      @@choudhary.0402 no dear, both are not same. C character set also contains non-printable characters like tabs, whitespace, newline, etc and are not alphanumeric. There are 31 non-printable characters in the set.

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

      Thanks for the clarity. I've been wondering why i keep getting the error 'implicit declaration of getch()' whenever i try to use it even i though i included the conio.h file.

  • @gig7productions563
    @gig7productions563 2 роки тому +7

    Fallen in love with C Programming and Data Structures. Thank you so much mam🙂

  • @divyprakashpandey4458
    @divyprakashpandey4458 2 роки тому +26

    NOTES:
    putchar()
    To print single character
    Syntax
    putchar(variable_name);
    putch()
    puts()
    It is used to print a string
    General syntax
    puts(variable_name);
    The special thing is→The new line function is built in

    • @Illmatic411
      @Illmatic411 2 місяці тому +1

      bro putch() also for printing single character right?

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

    Puts('a') getting an error
    BCz it is single character constant
    And puts() is used only for string ......

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

    if we enter to print puts('a') it will try to print output but since puts is used for printing strings it shows an error as ( expected output if a char but the argument is of type int). to avoid this error we should use double quotes like puts("a") then it will print a

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

    First view and comment best teacher in whole UA-cam for CS .

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

    Thanks a lot mam for improving my coding skills

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

    Beauty with brain...Very dangerous combination..😍

  • @durgalankipalli2541
    @durgalankipalli2541 2 роки тому +5

    Formatted Input and output mean arranging or formatting according to our wish, whereas Unformatted input and output means cannot arrange according to our wish.
    When running gets('c'), we get an error because that is to be only mentioned for strings and not for a character.

  • @parthshroff7357
    @parthshroff7357 Рік тому +3

    11:23
    Formatted :In this we have to specify the data type of the output or input variable which we are using
    eg :printf("%c",a); where a is a char, scanf("%c",&a);
    Unformatted : In this we do not need to specify the data type of the output or input variable which we are using
    eg :putchar(a) where a is a char, a=getchar().

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

    1:19 in formatted I/O functions the data we input can be arranged in a specific format,by using format specifiers .but in case of unformatted I/O functions there is no any way to input data in a specific format

  • @hadieudonne433
    @hadieudonne433 3 роки тому +21

    How can we get the PDF notes of this series of c languages??

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

    not for others
    THERE IS A DIFFERENCE BETWEEN putchar() AND putch() - putchar() belongs to standard C library (stdio.h), but putch() belongs to POSIX library (conio.h). Putchar() can print any single character of C character set (including the 31 non-printable characters), but putch() can only print a single alphanumeric character. getch()/Conio.h is not supported by many C compilers like GCC, and is used by DOS/Windows based compilers to make use of the I/O console. That's why it's

  • @arunmozhichelvanscse7349
    @arunmozhichelvanscse7349 3 роки тому +7

    Mam please make a video series on solving previous year gate questions and expected questions of gate

  • @Harishchandra-ik2cs
    @Harishchandra-ik2cs 3 роки тому +3

    Ma'am you are awesome ,your teaching style are awesome ♥️❤️❤️♥️

  • @kalyani-v7w
    @kalyani-v7w 12 днів тому

    Clear and neat explanation mam, wonderfull classess👏👌🥰💐🙏

  • @manuzangid
    @manuzangid 2 роки тому +2

    The one and only girl behind my passing marks 😅 thanks a lott

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

    Formatted input we need to specifies the specific format of data type but in unformatted input don't need to specific format of data type

  • @farzanaashraf8136
    @farzanaashraf8136 2 роки тому +2

    Formatted I/O functions mean we specify the format in which we want I/O. On the other hand, in unformatted I/O functions we can't specify the format we want for our input and output.

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

    formated input means we can arrange the data in order like how we need the data to be seen while unformatted input means we can not arrange the data in a particular order.

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

    Teaching style is awesome

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

    Miss, please add priority queue part in your data structure playlist. As soon as possible.

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

    Out put of last question will be a error but if we would keep that a inside double quot then it will print a and the as always cursor will be in second line.

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

    Watched and Understood ❤

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

    Thank you Mam

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

    In last question it will print ASCII value for a

  • @minimilitia6306
    @minimilitia6306 7 місяців тому

    You realy great teacher

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

    You are amazing 💕😘💕😘

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

    when we will write :- 'a' in puts
    we will get error of converting int into const char *

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

    Thank you mam ❤

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

    Mam! Start videos on computer networks mam !! Much needed for students like us!!😑😑😑😑😶😶😶

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

    Thanks mam,

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

    good topic to learn

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

    Mam as you uploaded videos of graph and tree in ds. Which I understand very well but their algorithm is asked in our semester exams. Mam I have understood all the topics of trees and graph,but I am unable to understand how to write their algorithm, mam I requested to you please share the notes of algorithm. Mam our external exams is held in march,so mam please take action on it.

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

    Mam please make videos on python...

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

    Madam kindly teach binomial coefficients table program

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

    Really amazing mam

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

    Super

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

    puts('a') => No output, seems to be a logical error

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

    Kya IT compony me kaam krne me thik rhta he as developer job pls tell..

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

    🔥🔥🔥

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

    mam please complete the playlist of DAA please .
    mam please give me some reply

  • @SHAZIASHAZIA-b7w
    @SHAZIASHAZIA-b7w Рік тому

    by using putchar() can we print all the string by using array or not madam?

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

    Maam are this lectures enough for gate exams?

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

    For last question it will print a

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

      No, it wouldn't print anything. It would print a if it's in " " double quotes but not for single.

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

    while printing output using putch() function it is showing as
    implicit declaration of function 'putch'; do you mean 'putc'?
    what is the error I have included conio. library also

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

      U shd put wt u hv to print into the () ex:putch(res);

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

    if you put a in puts , segmentation fault is coming mam

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

    your lectures are good,,, next time try to use a different ink and bigger font 😔,,, I can't see the programs clearly 🙆🙆

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

    9.49 can we write it puts("character is... ") puts(ch) puts('
    ') is this write way?

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

    Mam why do you smile at the time of explaining getch() function....????

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

    Mam how do u describe that putc defined in conio.h and so on how can we find out that mam

  • @ashleyohsosurreal
    @ashleyohsosurreal 5 місяців тому

    put char in a loop

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

    How can I display a number using putchar....and why does it work🙏🙏

  • @MindTech-Adult
    @MindTech-Adult 3 роки тому +1

    First view 😍😍

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

    The difference between formatted input and unformatted input:
    Formatted input contain format specifier, you can input base on your preference. Unlike for unformatted input, which does not contain format specifier, data cannot be inputted base on your preference.
    Ex: scanf("%d", sz); ................. formatted input
    gets(sz); ................................unformatted input
    The difference between formatted ouput and unformatted output:
    Formatted output contain format specifier, you can output base on your preference. Unlike for unformatted output, which does not contain format specifier, data cannot be displayed base on your preference.
    Ex: printf("Th sum is %d", sz); ..................formatted output
    puts(sz); ................................................unformatted output
    or you can write as puts("variable name"); .................when you want to display a specific string
    getchar( ) , getch ( ) takes one character. gets ( ) takes a string of characters
    putchar ( ) , putch ( ) display one character. puts ( ) displays a string of characters,
    for gets ( ) and puts ( ) , they are strings, and must have a size [ ]
    If I write puts ('a'), it will not display any data, because of the single quotes.
    Thanks very much mam. God bless

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

    What is the difference between putchar() ; and putch() ;

    • @gulkshyas.1041
      @gulkshyas.1041 3 роки тому

      Putch(); available on
      Putchar (); available on
      That is the only difference in it.

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

      @@gulkshyas.1041 Okay
      So, u mean they do the same work?
      Thankyou so much for your reply

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

    Mam getch or putch kis header file m aate h ?

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

    clrscr() function is not working in my dev c++. Why? What can i do mm

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

      @prajwal khatokar thanks. Turbo hi sahi hai.

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

    unformatted.c:2:10: fatal error: conio.h: No such file or directory
    2 | #include why do i get this error Mam

    • @Chigo-nr8jg
      @Chigo-nr8jg Рік тому

      THERE IS A DIFFERENCE BETWEEN putchar() AND putch() - putchar() belongs to standard C library (stdio.h), but putch() belongs to POSIX library (conio.h). Putchar() can print any single character of C character set (including the 31 non-printable characters), but putch() can only print a single alphanumeric character. getch()/Conio.h is not supported by many C compilers like GCC, and is used by DOS/Windows based compilers to make use of the I/O console. That's why it's not supported by UNIX and Linux.

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

    💛❤️👍👍

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

    we will get a only

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

    why putch when we have putchar?

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

    'a' is not a string hence it can't work with puts(). "a" is a string

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

    🥳

  • @shashank_kishore_
    @shashank_kishore_ 3 місяці тому

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤

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

    Why this not be downloaded???

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

    Array per bhi video dalo Ma'am

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

    👍

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

    I am first viewer

  • @ktvx-indiangamercentral8969
    @ktvx-indiangamercentral8969 3 роки тому

    You put up weight

  • @manojrajput569
    @manojrajput569 8 днів тому

    Pdf notes Avilable or not

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

    Can you give idea to learn difficult theory concepts to us,please

  • @user-uu6xe5rx5m
    @user-uu6xe5rx5m 2 роки тому +1

    Mam your salary per month

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

    Hi mam

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

    Ma'am
    putchar('
    '); wasn't working..
    ...
    I tried
    char n= '
    ';
    putchar(n);

  • @VishnuKumar-f5j8x
    @VishnuKumar-f5j8x 4 місяці тому

    Mam puts(ch): not compliering

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

    notes kaha se likhe mam

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

    Mam pls make video.on functions also

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

    Hello mam please upload notes of c language

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

    2nd comment
    No no 1st

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

    Hi mam I didn't understand unformated input fuctions

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

    First view

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

    Please ma'am provide me notes all

  • @maryannemuthoni5388
    @maryannemuthoni5388 10 місяців тому

    Formatted output is the one you can specify the output you want with a format specifier, unformatted is for char and string types only & output can not be specified.
    If you do puts('c'); you get an error/no output since it's a character and not a string, if you do puts("c") you get c. With single quotes it is a character, with double it is a string.

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

    Jenny kya hai ye sab? Strassen ka video hai nahi channel pe batao. Mante hain k C k videos banane me busy ho. Lekin Strassen bura man jayega k nahi bolo? Germany se aa jayega gusse me idhar. Fir mat bolna maine bataya nahi.

  • @beast_motivation-v2l
    @beast_motivation-v2l Місяць тому

    Not undurstood

  • @k.annpurnamma3357
    @k.annpurnamma3357 3 роки тому

    Mam i do like this,but i got error as 'undefined putch'
    #include
    #include
    void main( )
    {
    char ch;
    clrscr( );
    printf("press any key to continue");
    ch=getch( );
    printf("
    you pressed : ");
    putch(ch);
    }

  • @asu253941simi
    @asu253941simi 4 місяці тому

    Tapasi Pannu.. You looks like Tapasi

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

    Formatted I/O functios write a correct syntax and unformatted I/O functions write a not correct syntax 😂

  • @Manishkumar-kp5gr
    @Manishkumar-kp5gr 2 роки тому

    Mam are you married?

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

    Well i just wanted to know how much is left and how long will it take to complete this course ...btw first comment

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

      it has just begun...a long way to go......She is teaching from a very basic level which is the most beautiful thing about her...she is superb.

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

      Hii

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

    vagrant@ubuntu-focal:~$ vi unformatted.c
    vagrant@ubuntu-focal:~$ gcc unformatted.c -o reformatted
    In file included from unformatted.c:2:
    /usr/include/conio.h:144:1: error: unknown type name ‘class’
    144 | class __CONIO_H{
    | ^~~~~
    /usr/include/conio.h:144:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    144 | class __CONIO_H{
    | ^
    unformatted.c: In function ‘main’:
    unformatted.c:10:9: error: request for member ‘getch’ in something not a structure or union
    10 | getch();
    | ^~~~~

  • @SohanaSohana-v7x
    @SohanaSohana-v7x Рік тому

    Thank you mam