How not to check array size in C++

1 · PVS-Studio blog · April 5, 2024, 8:44 a.m.
How often do you see the sizeof(array)/sizeof(array[0]) statement used to get the size of an array? I really hope it's not too often, because it's 2024 already. In this note, we'll talk about the......