Here's the deal, if let's say i declare a integer and a character:
int x;
char c;
Now if I do this:
scanf ("%c", &c);
scanf("%d", &x);
everything's fine, I input c and then input x.
BUT if i scan x first:
scanf("%d", &x);
scanf ("%c", &c);
there's a problem. when i build and run program terminates without scanning c. second statement is not executed. WHY?