I'm using: Windows 10, C++, Visual Studio 2013.
I'm looking for a way to access my 2D-array with negative numbers, for example I know this works with a 1D-array:
int myarray[35];
#define a (myarray + 50)
a[-45] = 0; //accesses myarray[5]
but can't figure out how to make it work with a 2D-array:
int foo[32][32]
#define bar (foo + 50)(foo + 50)
// The above does not work
a[-5]you've done an out of bounds request.(??--5)[array- -!! array] = 123;.