+ 2
String Array (in C)
How does one make a code that allows an user to enter multiple strings into an array such that the output is: "string1 string2 string3 string4"
2 odpowiedzi
+ 4
#include <stdio.h>
int main()
{
char name[30];
fgets(name, sizeof(name), stdin); // read string
puts(name);
return 0;
}