Hi ,
i can't understand this code :
1. Why ch type is int and is not char ?Code:#include <stdio.h>
main (){
int ch;
do{
ch = getchar();
putchar(ch);
} while(ch != EOF);
}
2. Can use other type for ch ?
3. How many chars can store in ch ?
Excuse me for my bad english writing , Thanks in advance .