<<< String literal | Index | Pointer as function argument >>> |
String literal returns back the address of the first character in memory:
Address | ||||||
00476FEC: | H | E | L | L | O | \0 |
A pointer can be assigned to keep the address of the character string:
char* phello = "HELLO";
Pointer variable phello stores physical address of the first character in the string, which is 'H' in our example.
<<< String literal | Index | Pointer as function argument >>> |