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



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

Answer / 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

More Engineering AllOther Interview Questions

How to score well in examination of MCA(engg) december 2012? please reply soon........

0 Answers  


hiii.. i wanna ask u is it neccessary to take coaching for preparing for interwiews for placement. because we have toclear the aptitude test

1 Answers  


What is the difference betweem scrum model,xp model and fdd model?

1 Answers  


Method to solve question to find the number of zeros in a sequence given by: 1^1*2^2*3^3*4^4*5^5*6^6*........*99^99*100^100?

1 Answers  


I am looking for NIC Scientific Officer / Engineer-SB (Programmer)Sample papers or any portion of questions/ syllabus plz, send me on sengupta.pranab@gmail.com. Regards PRANAB

0 Answers  






What is a decade?

2 Answers  


What do you mean by component versionig?

0 Answers  


if u r using bugzilla then it generates automatic bugids,while testing uhave got a bug then bug is represented through a bug id say bug1, then bug is assigned to developer he fixes a bug ,say the bug is fixed no error is got later after few regression cycles u have got the same bug but the bug is represented by diff id say bug2,tell me how do i come to know that it is the same bug that had occured previously but now it is represented by diff id

0 Answers  


What would you like to discuss? Your work-ex or Your Engineering?

0 Answers   EX,


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

0 Answers  


what size shaft is required to transmit 100 hp @1000 RPM ,if max shear stress is 10,000 PSI,angle of twist must be less than 1' /ft/shaft is made of steel.

0 Answers  


What is the difference between command line argument and input taking from the user?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)