#include #include int main ( int argc, char *argv[] ) { int i; int *ip; int arr[10]; // can Valgrind find memory reference errors on static arrays? for ( i = 0; i <= 10; i++ ) { arr[i] = i; } ip = (int *) malloc(10 * sizeof(int)); // can Valgrind find memory reference errors on dynamic arrays? for ( i = 0; i <= 10; i++ ) { ip[i] = i; } // we had free ip here, see if valgrind can find this return 0; }