I know that %s is a string of characters, but I don\'t know how to use it. Can anyone provide me a very basic example of how its used and how its different from char ?
Here goes:
char str[] = "This is the end"; char input[100]; printf("%s\n", str); printf("%c\n", *str); scanf("%99s", input);