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
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
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🙂😇😇😇😇
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...
*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 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.
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.
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
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
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.
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().
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
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
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.
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.
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.
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.
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
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
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.
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.
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.
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); }
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(); | ^~~~~
puts ( 'a' ); it will give you error but if you put double qoutation puts ( "a" ); it will give you output a
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
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"
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
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🙂😇😇😇😇
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...
*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.
What is the difference b/w c character set and all alphanumeric characters I think they are same
@@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.
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.
Fallen in love with C Programming and Data Structures. Thank you so much mam🙂
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
bro putch() also for printing single character right?
Puts('a') getting an error
BCz it is single character constant
And puts() is used only for string ......
👏
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
First view and comment best teacher in whole UA-cam for CS .
Thanks a lot mam for improving my coding skills
Beauty with brain...Very dangerous combination..😍
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.
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().
Nice explanation
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
How can we get the PDF notes of this series of c languages??
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
Mam please make a video series on solving previous year gate questions and expected questions of gate
Ma'am you are awesome ,your teaching style are awesome ♥️❤️❤️♥️
Clear and neat explanation mam, wonderfull classess👏👌🥰💐🙏
The one and only girl behind my passing marks 😅 thanks a lott
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
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.
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.
Teaching style is awesome
Miss, please add priority queue part in your data structure playlist. As soon as possible.
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.
Watched and Understood ❤
Thank you Mam
In last question it will print ASCII value for a
You realy great teacher
You are amazing 💕😘💕😘
when we will write :- 'a' in puts
we will get error of converting int into const char *
Thank you mam ❤
Mam! Start videos on computer networks mam !! Much needed for students like us!!😑😑😑😑😶😶😶
Thanks mam,
good topic to learn
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.
Mam please make videos on python...
Madam kindly teach binomial coefficients table program
Really amazing mam
Super
puts('a') => No output, seems to be a logical error
Kya IT compony me kaam krne me thik rhta he as developer job pls tell..
Yes..but it depends on your interest
🔥🔥🔥
mam please complete the playlist of DAA please .
mam please give me some reply
by using putchar() can we print all the string by using array or not madam?
Maam are this lectures enough for gate exams?
Big No
For last question it will print a
No, it wouldn't print anything. It would print a if it's in " " double quotes but not for single.
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
U shd put wt u hv to print into the () ex:putch(res);
if you put a in puts , segmentation fault is coming mam
your lectures are good,,, next time try to use a different ink and bigger font 😔,,, I can't see the programs clearly 🙆🙆
9.49 can we write it puts("character is... ") puts(ch) puts('
') is this write way?
Mam why do you smile at the time of explaining getch() function....????
Mam how do u describe that putc defined in conio.h and so on how can we find out that mam
It's putch() function defined in conio.h
@@Amit_iPhone_shorts how do u tell that this belongs to that
It's in the video
put char in a loop
How can I display a number using putchar....and why does it work🙏🙏
First view 😍😍
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
What is the difference between putchar() ; and putch() ;
Putch(); available on
Putchar (); available on
That is the only difference in it.
@@gulkshyas.1041 Okay
So, u mean they do the same work?
Thankyou so much for your reply
Mam getch or putch kis header file m aate h ?
clrscr() function is not working in my dev c++. Why? What can i do mm
@prajwal khatokar thanks. Turbo hi sahi hai.
unformatted.c:2:10: fatal error: conio.h: No such file or directory
2 | #include why do i get this error Mam
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.
💛❤️👍👍
we will get a only
why putch when we have putchar?
'a' is not a string hence it can't work with puts(). "a" is a string
🥳
❤❤❤❤❤❤❤❤❤❤❤❤❤❤
Why this not be downloaded???
Array per bhi video dalo Ma'am
Already uploaded
👍
I am first viewer
You put up weight
Pdf notes Avilable or not
Can you give idea to learn difficult theory concepts to us,please
Mam your salary per month
Hi mam
Ma'am
putchar('
'); wasn't working..
...
I tried
char n= '
';
putchar(n);
Mam puts(ch): not compliering
notes kaha se likhe mam
Mam pls make video.on functions also
Hello mam please upload notes of c language
2nd comment
No no 1st
Hi mam I didn't understand unformated input fuctions
First view
Please ma'am provide me notes all
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.
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.
Not undurstood
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);
}
Tapasi Pannu.. You looks like Tapasi
Formatted I/O functios write a correct syntax and unformatted I/O functions write a not correct syntax 😂
Mam are you married?
Well i just wanted to know how much is left and how long will it take to complete this course ...btw first comment
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.
Hii
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();
| ^~~~~
Thank you mam