Given the following code:
If I had no idea how much space was allocated, how would I get the size of the space that the pointer p is pointing to (which would be 80 in this case)?Code:int *p = malloc(sizeof(int) * 20);
Given the following code:
If I had no idea how much space was allocated, how would I get the size of the space that the pointer p is pointing to (which would be 80 in this case)?Code:int *p = malloc(sizeof(int) * 20);