Code:THIS is the program works fine but after reallocation i will only able to print values of 5678, not all values form 1,2,3,4,5,6,7,8 kindly help me it my assignment. Sample Output Program to dynamically Allocates an array of integers. Enter the size of the array: 4 Enter a value: 1 Enter a value: 2 Enter a value: 3 Enter a value: 4 The elements of the array are: 1 2 3 4 Enter the elements in the array after reallocation: Enter a value: 5 Enter a value: 6 Enter a value: 7 Enter a value: 8 1 2 3 4 5 6 7 8 here is program Code: #include<stdio.h> #include<iostream.h> #include<stdlib.h> #include<string.h> #include<conio.h> main() { int x,i,arrysize,*iptr,*sptr; cout<<"Enter the size of the array:"; // take values from user cin>>arrysize; iptr=(int*)calloc(arrysize,sizeof(int)); // memory alloaction process & error check if(iptr==NULL) { cout<<"there is problem in memory allocation "; } sptr=iptr; for(i=0; i<arrysize; i++) //geting valuse from user in arry { cout<<"Enter a value:"; cin>>*sptr; sptr++; } cout<<"The elements of the array are:\n"; // printing the values befor realloction for(i=0; i<arrysize; i++) { cout<<*iptr; iptr++; } realloc(iptr,(arrysize*2)*sizeof(int)); // memory reallocation & error check if(iptr==NULL) { cout<<"there is problem in memory REallocation "; } cout<<"\nEnter the elements in the array after reallocation:\n"; for(i=0; i<arrysize; i++) //geting valuse from user in arry after reallocation { cout<<"Enter a value:"; cin>>*sptr; sptr++; } cout<<"The elements of the array after reallocation:\n"; // printing the values after REealloction for(i=0; i<arrysize; i++) { cout<<*iptr; iptr++; } free(iptr); sptr=NULL; getch(); }