View Single Post
NascentOxygen
NascentOxygen is offline
#2
Mar9-12, 08:00 AM
HW Helper
P: 4,716
NARY[x][y+1] = 2 * NARY[x-1][y] - 2 * y * NARY[x][y-1];
You initialize and assign elements in your NARY array with indices 0..upwards. But this line when executed with x=0 and y=0 calls upon elements NARY[-1][0] etc.