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
difference between Low, Middle, High Level languages in c ?
What are identifiers in c?
What are preprocessor directives in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What does p mean in physics?
Explain the difference between call by value and call by reference in c language?
How can you tell whether a program was compiled using c versus c++?
What is a structure in c language. how to initialise a structure in c?
What is an example of structure?
What is "Duff's Device"?
What is meant by keywords in c?
Explain the red-black trees?
Which is better malloc or calloc?
What are the advantage of c language?