fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char *s="IITR";
  8. cout<<s+2<<endl;
  9. cout<<&(*s)<<endl;
  10. cout<<&s+2<<endl;
  11. cout<<&(s)<<endl;
  12. cout<<*s+2<<endl;
  13. cout<<(int *) s;
  14. }
Success #stdin #stdout 0s 5332KB
stdin
Standard input is empty
stdout
TR
IITR
0x7ffcae89fc70
0x7ffcae89fc60
75
0x565246e78004