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
How can you call a function, given its name as a string?
Explain what is wrong with this statement? Myname = ?robin?;
What is calloc malloc realloc in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is masking?
In a header file whether functions are declared or defined?
Where register variables are stored in c?
What is a nested loop?
Can we change the value of #define in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is the use of parallelize in spark?
Are pointers really faster than arrays?
What are the advantages of using macro in c language?
Explain is it valid to address one element beyond the end of an array?
Write a program that accept anumber in words