Is Str
a "pointer" or a "pointer to pointer" in Str[3][5]
?
I usually declare char **Str
to make a simulated 2D array, but how to send the address of Str[3][5]
to another function, and how to set the parameter of that function in order to modify values in Str[3][5]
?
As far as I know, the compiler treats a 2D array as an ordinary array, so I should send Str
(a pointer) to the other function. But how to modify the value of Str[3][5]
via the received pointer?