// Input an integer array a of size 15 from the user. The array can have multiple // occurrences of elements. You have to remove the multiple occurences of elements // and store the distinct elements in a new array. The memory for the new array // has to be dynamically allocated using malloc such that its size is same as the // number of distinct elements in A. // // Authir:rahule@cse.iitk.ac.in #include #include #define n 15 //number of elements in the array main() { int a[n],i,j,cnt=1, *p; //cnt is used to store the total number of distinct number in the given array printf("\nEnter the 15 integers :"); for(i=0;i