out of fgets() and gets()which function is safe to use and
why in c language?

Answer Posted / pragati priya

The function fgets() function is safer to use. It checks the
bounds, i.e., the size of the buffer and does not cause
overflow on the stack to occur. gets() does not check the
bounds.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i implement a program of polynomial adding,multiplication,through c language???

1525


please explane me clusterd and non clusterd

1632


I have done BE ( computer science) i secleted in sbi clerical written exam. so what questions they asked according to my subject please send me the answer

1651


model question papers of GrayOrange company

1025


Explain diffrent parts of an instruction format.

3234






what is the main fuction of OSPF in a internetwork? how does work of same network?

1542


What is the difference between while & do while loop

1720


If you have two 132KV distance scheme and you are using fibre for comms but the two relays on are not compatible interms of comms what can you use to allow communication between the two relays.

1555


I want to make my career in networking so how to going there? right now i have done a+ n+ ccna course from cms com institute but i m not certified with globle certification os what is my frist step ?, my finincial prob also with me plz sorry isubmit it

1590


Please mail me the sample papers of PNB for the post Dy. Manager.

1493


what are the artifacts in coding phase in SDLC????

1650


Write a java program to print the subsets of a string

2063


Are bridges more stable on concrete or on soil - why?

967


difference between arrays and linked list in c language?

1656


how to send request to the direct server rather than proxy server

1566