Copies input to output - C Data Type

C examples for Data Type:char

Description

Copies input to output



int ch;
ch = getchar();
while(ch != EOF) {
  putchar(ch);
  ch = getchar();
}
int ch;
while((ch = getchar()) != EOF)
   putchar(ch);

Related Tutorials