How the following code increases the size of dynamic allocatedmemory to 40?
int main()
{
int *p;
p = (int *)malloc(20);
p = realloc(p,sizeof(int)*8);
}
Expert Answer
An answer will be send to you shortly. . . . .
How the following code increases the size of dynamic allocatedmemory to 40?
int main()
{
int *p;
p = (int *)malloc(20);
p = realloc(p,sizeof(int)*8);
}
An answer will be send to you shortly. . . . .