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