This Blog is all about the cutting-edge Technologies and new Invention Window, and you will learn the magic of Computer Science form this Blog. So, Stay Connected.
▼
Sunday, 27 August 2017
C | Scanf problem while scanning a string
/* FIX: Leave a space before %c */
eg:
for(i=0;i<5;i++)
scanf(" %c",&string[i]);
This will eat newline character and also special character.
No comments:
Post a Comment
Thanks For Reading! Visit Again