+ 1
Gets() in c program
I did not understand why is char[100]; gets(a); is written what is the meaning of it?
2 Answers
+ 3
gets() is function used to read the line of stings from standard input into argument charecter array a.
Check this by
gets(a);
puts(a); //outputs what ever read by gets() into a.
gets() is a non-standard deprecated function. So recommend that avoid using gets() instead use fgets()..
0
Ok