I am trying to printf a simple string but I am not being able to.
#include <stdio.h>
int main(){
char *word;
scanf("%s", &word);
printf("%s\n", word);
return 0;
}
When I insert the word my code breaks.
It just stops the program execution but doesn't give me any error.
What am I doing wrong?