Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Yes you can But: 1- create an Array or Char. 2-write %s and not %d 3- DO NOT write & before the name of your string For example: char a[100]; printf("Enter something \n"); scanf("%s", a); printf("you've entered %s",a);
4th Sep 2019, 3:37 PM
CHERIEF Houcine Abdelkader
CHERIEF Houcine Abdelkader - avatar