// 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>

using namespace std;

int main()
{
    int a[] = { 1, 2, 3, 4, 5 };
    for(int i = 0; i < sizeof(a)/sizeof(int); i++) cout << a[i] << endl;
    int bl = 5;
    int *b = new int[bl];
    for(int i = 0; i < bl; i++) b[i] = i+1;
    for(int i = 0; i < bl; i++) cout << b[i] << endl;
    delete[] b;
    return 0;
}
