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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!