1.

Out Of Fgets() And Gets() Which Function Is Safe To Use And Why?

Answer»
  • The 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. 
  • The GETS() function does not check the bounds.
  • The gets() function is an insecure and careless use can lead to ERRORS.



Discussion

No Comment Found