Hi all,
Can somebody help me pls.
I need to create an array of strings using a set of string pointers.
char *name1 = "aa";
char *name2 = "bb";
want to make an array like
char *nameall[] = {name1, name2};
But this does not work :(
Is there a simple way to make the array in a simple way than assigning for each element.
I mean without doing
name[0] = name1;
name[1] = name2;