cout << ("hello" + 1);
You increase the number of const char[] by 1, so you print everything except the first character (until you hit the null character
cout << (*"hello") + 1;
Here you are casting const char[] . The first character is h, with an ascii code of 104 . Add one and you get 105 .
cout << (*("hello" + 1));
Same as before, you cast const char[] , but this time you increment by one.
source share