This code works on my desktop tower using windows 7 DEV C++, but does not work on my Toshiba laptop in windows 8. If I enter alan the results are >>@#%<<. Charcters work and integers work, but strings do not.
int main(void)
{
int x;
double y;
char string[100];
/* string input */
printf("enter one word: ");
fflush(stdin);
scanf("%s", string); /* no & before string */
printf("The word you entered was >>%s<<\n");