#include #include int main(){ int size; /* take the size of the array from user as input */ printf("Enter size of the array: "); scanf("%d", &size); /* dynamically create an array of the reqruired size */ int *a = (int*)malloc(sizeof(int)*size); if(size<0){ size = size*(-1); } /* enter the elements to the array */ printf("Enter elements of the array: "); for(int k=0; k