Computer Science, asked by aditioraon637, 4 months ago

Write a C program to search a particular name from a given list of names using pointer​

Answers

Answered by kayamtejaswi2004
0

Explanation:

Logic to search an element in array using pointers Input element to search from user, store it in another variable say toSearch . Initialize a pointer to first and last element of array. Say arr = array and arrEnd = (array + size - 1) . Initialize a variable index = 0 that will keep track of searched element index.

Answered by divyaprakash1281
0

Answer:

Write a C program to input elements in array and search an element in array using pointers. How to search an element in array using pointers in C programming. Logic to search an element in array using pointers in C program.

Example

Input

Input array elements: 10 20 30 40 50 60 70 80 90 100

Input element to search: 25

Output

25 does not exists in array.

Similar questions