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
What is the explanation for modular programming?
What is main function in c?
What are the features of the c language?
Explain what are the advantages and disadvantages of a heap?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is anagram in c?
What is the condition that is applied with ?: Operator?
What are the different file extensions involved when programming in C?
What is static and volatile in c?
What is %lu in c?
Does sprintf put null character?
What is a program flowchart?
Is linux written in c?
What is sizeof array in c?