char * p = "hello"; cout<<p; cout<<p+1; cout<<*p;
hello 105 h
<<
cout
p
char*
"hello"
p+1
*p
*p+1
cout<<*p+1;
char * p = "hello"; cout<<p; // printing the char pointer wihtout any condition cout<<p+1; // printing the pointer skipping the first character cout<<*p;// printing the value at the address char p[0]. which is p[0].
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)