Mega Code Archive

 
Categories / C / Console
 

Read and output string

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