Please indicate to me if I have the general idea of this memory allocating code correct. Thanks
If a user enters more than 15 ( or is it 14) bytes worth what could happen?Code:char * hPtr[10]; // Defines an array of 10 character Pointers for(int ctr = 0; ctr < 10; ctr++) { // Allocates 15 bytes for each hPtr element. hPtr[ctr] = (char *)malloc(15 sizeof(char)); }