M
Mars
char c;
int i;
scanf("%d",&i);
c=getchar();
I want to read a integer and a character in 2 lines.
Why the getchar always get the \n character from the last line?????
(Sorry for my newbie question, but where is the FAQ section of the
newsgroup??)
int i;
scanf("%d",&i);
c=getchar();
I want to read a integer and a character in 2 lines.
Why the getchar always get the \n character from the last line?????
(Sorry for my newbie question, but where is the FAQ section of the
newsgroup??)