Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 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);