x

C program to search given number in an array

C program to search given number in an array:

Below C program will search given number in an array and will display the location of the number being searched if it is present.

Output:



Please enter how many elements should be available in an array

3

Please enter 3 numbers or integers

10

20

30

Please enter the number you want to search

20

20 is present at location 2

 



Like it? Please Spread the word!