This is my code. When I access dtr array in initImg function it gives a stack overflow exception. What might be the reason?
#define W 1000 #define H 1000 #de
Your compiler will define the stack size. A way to get around this is to dynamically allocate your arrays using std::vector array_one(W*H).