/**** A program to understand Dynamic memory Allocation ******* *** By +Nullset ***** **** ****/ #include /* Main function starts here */ int main() { int n, i; int *p; printf("Enter the number of elements"); scanf("%d", &n); p = (int *)malloc(n*sizeof(int)); if(p == NULL) { printf("Insufficient Memory\n"); } else for(i=0;i