3 ms·
To add to my own comment, more realistically this happens if the variable is used in the calculation of an index, rather as directly as the index. Though if the
by anyfoo 5y ago
To add to my own comment, more realistically this happens if the variable is used in the calculation of an index, rather as directly as the index. Though if the array is sufficiently large, and/or the smaller type sufficiently small (short or even char, which are most often 16 or 8 bit nowadays), then at least accessing the wrong element is still common (out of bounds less so). Well, you get the overall idea.