:confused: But Jst, said that there's an error with the program, before the '&' was used. So, wouldn't it be neccessary to include a '&'? Anyway, I don't have a compiler to verify that now, so if the...
Type: Posts; User: ocy
:confused: But Jst, said that there's an error with the program, before the '&' was used. So, wouldn't it be neccessary to include a '&'? Anyway, I don't have a compiler to verify that now, so if the...
...
printf("Name: ");
scanf("%s", &str);
printf("Hello %s", str);
...
Notice the difference? You'd missed something out, something very important.
The scanf function...