fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int c[]={2 ,3 ,4 ,6 ,5};
  7. int j , *p = c , *q = c ;
  8. for ( j =0; j<5; j++)
  9. { cout<<*c ;
  10. ++q;
  11. }
  12. for ( j =0; j<5; j++)
  13. { cout<<*p;
  14. ++p;
  15. }
  16. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
2222223465