Say I have declared a 2d array like
char* array[30][30];
and what I am putting into it are strings, not all of length 30, like
char* string="test string";
I want to put each char of string into array starting at array[i][0]
I am trying to avoid using a loop to go over each character, is there a more efficient way of doing this?
You mean like:
I assume you also meant to declare your 2D array with: