摘要:
Array & Pointer Are they equivalent?Consider the following two pieces of code:int *p;...c = p[1];int p[10];...c = p[1];Are they equivalent? If not, which is faster? The answer is here:Disassembled for c = p[1]:mov eax,dword ptr[p]mov ecx,dword ptr[eax+4]mov dword ptr[c],ecxDisassembled for c = p 阅读全文