I am new to C and not sure how to pass pointers/addresses properly when it comes to chars/strings. I can't get my head around these "strings", about how to master the pointers.
I basically want to pass the address of the array "a" defined below to an arbitrary function, but I don't know how to define the pointer for this array.
Please help me!
I have the following code:
void change(char** a){
a[0][0]='k'; //that should change a inside main
}
void main() {
char a[2][3];
char *tempWord;
tempWord="sa";
a[0]=tempWord;
a[1]=tempWord;
change(&a);
}