1,076,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Posts by Vish0203 which have been Voted Up

and try to use fgets dont use gets() .because now only i learned this topic recently

we use fgets() because gets() doesn't allow to specify the length of buffer to store string whereas in fgets we are allowed to give max string length.

here's the syntax:

fgets(s,sizeof(s),stdin);
Vish0203
Junior Poster
144 posts since Apr 2012
Reputation Points: -6
Solved Threads: 9
Skill Endorsements: 0
 
© 2013 DaniWeb® LLC
Page rendered in 0.0338 seconds using 2.45MB