fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char *str="IITR";
  8. for (int i=0; i<3; i++)
  9. {
  10. cout<<str+i;
  11. cout<<*(str+i);
  12. }
  13. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
IITRIITRITRT