cppcheck/samples/AssignmentAddressToInteger/bad.c

12 lines
96 B
C
Raw Normal View History

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