I'm using win 8.1 64bit Eclipse Luna 4.4.0 and compiling with gcc 4.6.4 and the problem is e.g.
in this simple program, my printf
and scanf
statements are appearing on the console in the wrong order.
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int i;
printf("Enter int: ");
scanf("%d",&i);
printf("Hello %d\n",i);
return EXIT_SUCCESS;
}
it does this:
4
Enter int: Hello 4
instead of this:
Enter int: 4
Hello 4