// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>

#include <stdlib.h>

int main(int argc, char *argv[])
{
  int ia[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
  for(int j=0;j<10;j++) {
      cout << ia[j] << endl;
  }
  int *ip = ia;
  while(ip<=(&ia[9])) {
      cout << *ip << endl;
      ip++;
  }
  char sa[2][5] = { "1234", "4321" };
  for(int j=0;j<2;j++) {
      cout << sa[j] << endl;
  }
  char *sp = sa[0];
  while(sp<=sa[1]) {
      cout << sp << endl;
      sp += 5;
  }
  return 0;
}
