What is the difference between GETS();AND SCANF();
Answer Posted / niraj kumar
Main difference between '%s' and 'gets' is:
%s ends taking input when it encounter whitespace, new line(
) or EOF.
gets takes whitespace and stops taking input when it encounters new line(
) or EOF.
| Is This Answer Correct ? | 14 Yes | 9 No |
Post New Answer View All Answers
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is the use of #include in c?
What is the use of volatile?
What is the need of structure in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is abstract data structure in c?
Can a file other than a .h file be included with #include?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
When should you use a type cast?
How do you search data in a data file using random access method?
Where define directive used?
What are enums in c?
what is the different bitween abap and abap-hr?
What is conio h in c?
What is the use of c language in real life?