Write a C program that generate an array (50 elements) with random numbers from 1 to 50. Then the user will input 1 integer number and the program should count how many times that number occurs in the array and delete all elements equal to the input number from array. Students have to use pointer. Output: The original array 10 2 39 23 18 22 35 1 3 15 22 3 16 10 45 18 49 12 1 15 44 23 2 47 2 20 33 19 11 24 29 16 14 24 22 36 36 28 27 32 29 28 13 48 7 18 4 18 13 27 Enter a value (from 1 to 50) to be deleted = 22 The new array 10 1 45 23 19 2 39 3 15 18 49 2 47 11 24 23 3 12 36 27 18 14 36 28 32 29 16 24 13 7 18 4 18 13 27 29 48 1 2 28 35 16 10 15 44 20 33 There are 3 values of 22 being deleted from the original array