What is the difference between GETS();AND SCANF();
Answer Posted / rejith vr
We can use scanf() instead of gets()
Syntax : gets(str);
||
||
scanf("%[^
]s",str);
it will accept multiple words in a string
| Is This Answer Correct ? | 5 Yes | 23 No |
Post New Answer View All Answers
How does pointer work in c?
What is c programming structure?
write a programming in c to find the sum of all elements in an array through function.
Why is it that not all header files are declared in every C program?
What is the return type of sizeof?
what are enumerations in C
can anyone suggest some site name..where i can get some good data structure puzzles???
How can I pad a string to a known length?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is #define size in c?
Write a program to check armstrong number in c?
What is use of pointer?
Explain 'far' and 'near' pointers in c.
How can I avoid the abort, retry, fail messages?
What is default value of global variable in c?