|  | 
| Say Sorry tosun88888, you are also right, so is Space Hero: 
 
 char z[]= "abcde";
 for(int k=0; k<5; k++)
 {
 cout<<hex<<(int*)(z+k)<<endl;//After testing, to output the address, the char* type address must be converted to int*, otherwise the characters will be output.
 cout<<hex<<(int*)&z[k]<<endl;//Space Hero
 cout<<z[k]<<endl;
 }
 | 
 |