scanf(ch_arr[0], "type");
The above snippet used in a program:
char ch_arr[3][10] = {
"spike",
"tom",
"jerry"
};
This is invalid:
ch_arr[0] = "tyke"; // invalid
ch_arr[1] = "dragon"; // invalid
While this is valid
scanf(ch_arr[0], "type");
Can someone explain why this is valid because I expect scanf to take in a type specifier as its first argument