Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 2
Why does the following snippet of code output only one symbol?
cout << *("Hello!"); // H
1 Réponse
+ 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.