The name of a string in C is a constant value that contains the address to the first element of the string. Now my question is: why this constant variable and his pointer contains the same address?
char str[] = "hola";
printf("%p %p", &str, str);
The output of this code is :
0x7ffc9ab53f43 0x7ffc9ab53f43
but i was expecting to read two different addresses.