code:
while( (c = getchar()) != EOF ){
putchar( c );
}
when I input abc
I guess the output is
aabbcc
, but the output is
abc
abc
why ?
code:
while( (c = getchar()) != EOF ){
putchar( c );
}
when I input abc
I guess the output is
aabbcc
, but the output is
abc
abc
why ?