Read string: A simple scanf and printf pair
#include <stdio.h> int main(void) { char str[80]; printf("Enter a string: "); scanf("%s", str); printf(str); return 0; }