I am working on this project and when I run valgrind on this line of code
int numPointers;
numPointers = atoi(argv[NUM_POINTERS_VALUE]);
I get a valgrind error of
Invalid read of size 1 [PID: 8979] Address 0x0 is not stack'd, malloc'd or (recently) freed
I was wondering what is going on here and if there is a way to fix it
NUM_POINTERS_VALUEshould always be< argc- AxaloNUM_POINTERS_VALUEcontain and what command do you execute to runvalgrind? - Santosh A