I have trouble understanding the variations among these :
char* s = "string";
cout<<*s+1;
cout<<(*s)++;
cout<<*s++;
I have trouble understanding the variations among these :
char* s = "string";
cout<<*s+1;
cout<<(*s)++;
cout<<*s++;
*s+1
statement adds 1 with the ASCII value of the 1st element of the string and prints it.
And *s
prints the 1st element of the string.