C - Pointers - Some examples
We can see with examples below that myString[0] == *myString == *(&myString[0]) == H. Why? Because myString[0] points the first character of the string “Hello World”, in this case “H”. Same for *myString that is the value of the first character of the string. Finally &myString[0] is the address of the first character (H), and with the * before we retrieve the value of this address, in this case “H”. ...