fork(1) download
  1. #include <iostream>
  2. #include "stdio.h"
  3. using namespace std;
  4.  
  5. int main() {
  6. int a[] = {1,2,3,4,5,6,7,8,9,10};
  7.  
  8. for (int *aWalk = a; aWalk < (a + sizeof(a) / sizeof(int)); aWalk++)
  9. {
  10. printf("%3d", *aWalk);
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
  1  2  3  4  5  6  7  8  9 10