As I know, I can create an array with an element inside, for example:
char *test1[3]= {"arrtest","ao", "123"};
but how can I store my input in an array, like the code above, because I can encode it like
input[10]; scanf("%s",&input) or gets(input);
and saves every char to every space.
How can I save the input "HELLO" so that it is saved at the input [0], but now
H for input [0], E for input [1], etc.
c arrays
Mooncycy
source share