cppcheck/samples/AssignmentAddressToInteger/bad.c

13 lines
110 B
C

int foo(int *p)
{
int a = p;
return a + 4;
}
int main()
{
int i[10];
foo(i);
return 0;
}