+ 2
Why does the following snippet of code output only one symbol?
cout << *("Hello!"); // H
1 Resposta
+ 2
Every string is an array of char.
"Hello!" is in fact an Adress to an array of char. So, doing *("Hello!") takes the first value of that array and outputs it.