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
explain what is an endless loop?
How can I open files mentioned on the command line, and parse option flags?
What is a stream in c programming?
Explain how do you list files in a directory?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Differentiate between #include<...> and #include '...'
When should you use a type cast?
Create a simple code fragment that will swap the values of two variables num1 and num2.
If errno contains a nonzero number, is there an error?
Why c is called a middle level language?
How can I pad a string to a known length?
List some of the dynamic data structures in C?
What is console in c language?
Write the control statements in C language
How do you write a program which produces its own source code as output?