Input / Output

Q1: Out of fgets() and gets() which function is safe to use?

A gets()

B fgets()

ANS:B - fgets()

Because, In fgets() we can specify the size of the buffer into which the string supplied will be stored.

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.