I was working with pointers and came up with a problem. So far I know that when we create an array of any data type, then the name of the array is actually a pointer (maybe static pointer) pointing towards the very first index of the array. correct?
So what I'm trying to achieve is to create another pointer that may hold the address of the array name(i.e a pointer towards another pointer which in my case is the array name)
For Example:
char name[] = "ABCD"; // name holding the address of name[0]
char *ptr1 = name; // When is this possible?
char **ptr2 = &name; // Why not this?
// It gives an error: cannot convert char(*)[5] to char**
I'm using Code Blocks as IDE.
&operator.int x = 3; float y = x;, but that does not mean that anintis afloat. And that names would be something is nonsense. Names don't exist, only the objects they refer to do.