I recently ran into this code in C:
int m=5; int n=4; int *realfoo = new int[m+n+3]; int *foo; foo = realfoo + n + 1; memset(realfoo, -1, (m+n+2)*sizeof(int))