Mega Code Archive

 
Categories / C / Console
 

Read a certain length of string

#include <stdio.h> int main(void) {   int i;   char str[80], str2[80];   scanf("%20s", str);   printf("%s",  str );   return 0; }