Just to make sure I understand what you are saying(I am not OP), by pointers to char you are speaking about char arrays right? Because aren't char arrays addresses(like when you pass an array to a function, it passes an address?)
Because aren't char arrays addresses(like when you pass an array to a function, it passes an address?)
No, arrays are a set of elements of the same type that are contiguous in memory.
However, they can be implicitly converted to a pointer to their first element.
not only char arrays but also integer arrays can be converted to pointers to their first element.
@georgewashere I don't know much but i think the answer is no.Arrays are set of elements with same data type. when u pass it to a function u pass the elements not the addresses. but if ur using a pointer pointed to that array which is in same data type then you can pass that pointer by differencing it.
1 2 3 4
char name[size]={0};
char *cPtr;
cPtr=name;//note ....same as integer arrays
//cPtr=&name [ 0 ] same as cPtr =name