Hey,
i ahve asked you some days before how to use scanf to add string
but i think that if you use fgets you can take strings faster
the problem is i don't know how to get a string
for example i got this:
this code isn't working and i don't know why?Code:#include <stdio.h> main() { printf("Hello, what is your name?"); fgets(name, sizeof name, stdin); printf("Your name is %s", name); }
please help me using fgets
thanks



LinkBack URL
About LinkBacks



