Initializing 2D char array in C
I think pictures help. Here is char newarray[5][10]. It is a single memory block consisting of an array of 10 characters, and an array of five of those. You could just clear it with a single memset call. Here is char **array. It says array is a pointer. What is it a pointer to? a pointer to a character. Keep in … Read more