Write a C program to search a particular name from a given list of names using pointer
Answers
Answered by
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
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
Math,
2 months ago
Chemistry,
2 months ago
CBSE BOARD X,
2 months ago
Math,
4 months ago
Accountancy,
4 months ago
Biology,
10 months ago
Math,
10 months ago