/* Demonstrates the getchar() function. */ #include main() { int ch; while ((ch = getchar()) != '\n') putchar(ch); return 0; }