+ 1
prompt for a number of characters
Is it possible to prompt for a specific number of characters?
4 Respuestas
+ 2
char name[100];
scanf("%10s", name); //the "10" means ten (max)characters
printf("%s", name);
http://www.cplusplus.com/reference/cstdio/scanf/
+ 3
I didn't get the question either sorry
+ 1
Elaborate more please, an example?
+ 1
Sht sorry unread the your post and I thought you meant py, sont know c sorry my bad