cppcheck/samples/AssignmentAddressToInteger/bad.c

12 lines
96 B
C

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