Question: Write a C program to create a dynamic array. The program should do following: 1) ask user to input the size of the array and
Write a C program to create a dynamic array. The program should do following: 1) ask user to input the size of the array and crate a dynamic array 2) ask user to input the numbers to initialize the array 3) the program asks user to input the search number and check if the number is in the array.
Sample:
Please enter the size of the array: 4
Please enter the array element: 1
Please enter the array element: 2
Please enter the array element: 3
Please enter the array element: 4
element 0 = 1
element 1 = 2
element 2 = 3
element 3 = 4
What number your want to check: 3
Find number 3 in array[2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
