Qualcomm Interview Question

How do you check if 2 buffers overlap?

Interview Answer

Anonymous

May 28, 2011

if(a + sizeof(a)) > B) && ((B+sizeof(B)) > A)

1