Hi,
Why do the following code fragments not behave the same way? In Java I'm quite sure the two would behave the same.
Code:for (; BufferPos < BufferLen; BufferPos++) { if (ReadBuffer[BufferPos] == search[0]) { found = true; break; } }Code:while (BufferPos < BufferLen) { if (ReadBuffer[BufferPos++] == search[0]) { found = true; break; } }




Reply With Quote