615 HIKES and counting

Top Stories

Lava Kafle


C++ Programming: Static Code Analysis and the New Language Standard C++0x – CodeGuru

This function cannot work on a 64-bit system with large arrays. If the variable arraySize has a value more than UINT_MAX, the condition “i < arraySize” will never be fulfilled and an eternal loop will occur.bool IsPresent(char *array, size_t arraySize, char key) { for (unsigned i = 0; i < arraySize; i++) if (array[i] == […]