Table of Contents
Here is a simple code
int main() { char a[10]; a[10] = 0; return 0; }
If you save that into file1.c and execute:
file1.c
cppcheck file1.c
The output from cppcheck will then be:
Checking file1.c... [file1.c:4]: (error) Array 'a[10]' index 10 out of bounds