C examples for Data Type:char
Repeats input to end of file with getchar() and putchar()
#include <stdio.h> int main(void) { int ch;/*from w w w .j a v a 2 s .com*/ while ((ch = getchar()) != EOF) putchar(ch); return 0; }