Input / Output - General Questions :: Discussion


9.Out of fgets() and gets() which function is safe to use?
A.gets()
B.fgets()
C.gets() and fgets()
D.None of above
Answer:  Option  B
Explanation:

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

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers