fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char *s="IITR";
  8. cout<<s<<endl;
  9. cout<<&(*(s+1))<<endl;
  10. cout<<&s<<endl;
  11. cout<<(int *) s;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
IITR
ITR
0x7ffde287adc0
0x56313019e004