T
Thomas Zhu
would someone tell me:
s1: int *ptr = (int *) malloc (sizeof(int));
s2: int *ptr = (int *) malloc (n * sizeof(int));
when i use free(ptr),
what is the difference between the two statements?
thanks in advance.
s1: int *ptr = (int *) malloc (sizeof(int));
s2: int *ptr = (int *) malloc (n * sizeof(int));
when i use free(ptr),
what is the difference between the two statements?
thanks in advance.