C examples for Data Type:char
Copy input to output with getchar() and putchar()
#include <stdio.h> int main() //from w ww . jav a2s . co m { int c; while ((c = getchar()) != EOF) { putchar(c); } }