// illustrates reading a string with scanf #include int main() { char buffer[80]; printf("Please type in a line of text: "); scanf("%s", buffer); printf("Data stored in buffer:\n"); printf("%s\n", buffer); return 0; }