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 a null string in c?
Is there any data type in c with variable size?
write a program to find the given number is prime or not
What is non linear data structure in c?
How can I invoke another program or command and trap its output?
Write a program with dynamically allocation of variable.
Is c easy to learn?
What is a shell structure examples?
What is pre-emptive data structure and explain it with example?
What is data types?
How can I remove the trailing spaces from a string?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is the 'named constructor idiom'?
Is main is a keyword in c?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.