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
Explain that why C is procedural?
What are c preprocessors?
Explain how do you convert strings to numbers in c?
Is c procedural or functional?
How can I send mail from within a c program?
Is Exception handling possible in c language?
What is difference between structure and union?
Differentiate between static and dynamic modeling.
provide an example of the Group by clause, when would you use this clause
How old is c programming language?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Why is main function so important?
Is c++ based on c?
Why is this loop always executing once?
What is the difference between char array and char pointer?