If I have a cstring array char *a[2]; how do I make a={"aA", "bB"} character by character. In another word first assign 'a' to the first character of the first element, 'A' to the second character of the first, '\0' to the third character, then do the same for "bB'.
Not sure what you mean. cstring arrays would be arrays of type char, not arrays of type char*.
Given the array of pointers, shall we allocate an array of chars to each?
If so:
Well, I mean array of cstrings. If char a[12]="helloXworld" , then I want the array of cstrings(let's say it's b) to be {"hello", "world", (char *)0}. What I want to know is how to set the first character of the first elment of b to be 'h'(which is a[0]), and the second character of the first element of b to be 'e'( a[1]), and so on. Thank you for response!!