int *x=(int*) malloc(100*sizeof(int));
x=(int*)realloc(x,sizeof(int)*200);
a) If realloc fails then original memory is lost.
b) Nothing realloc is guaranteed to succeed(by returning the original pointer)
c) realloc might throw null pointer exception if malloc fails to allocate memory.
d) calloc should have been used instead of malloc.