About 12,800,000 results
Open links in new tab
  1. C program to search element in an array - Codeforwin

    Jul 17, 2015 · Step by step descriptive logic to search element in array using linear search algorithm. Input size and elements in array from user. Store it in some variable say size and arr. Input number to search from user in some variable say …

  2. Searching Elements in an Array - GeeksforGeeks

    May 23, 2024 · In this post, we will look into search operation in an Array, i.e., how to search an element in an Array, such as: Searching in an Unsorted Array using Linear Search; Searching in a Sorted Array using Linear Search; Searching in a Sorted Array using Binary Search; Searching in an Sorted Array using Fibonacci Search

  3. C program to search an element in an array | ProCoding

    Learn how to write a C program to search for an element in an array. This article provides a detailed explanation and sample code for searching an element using a simple linear search approach.

  4. C Program for Linear Search - GeeksforGeeks

    Apr 15, 2025 · Linear Search is a sequential searching algorithm in C that is used to find an element in a list. Linear Search compares each element of the list with the key till the element is found or we reach the end of the list. Example. Explanation: Start from index 0, compare each element with the key (30).

  5. C Program To Search An Element In An Array | C Programs

    Apr 15, 2025 · C Program to search for an element in an array – In this article, we will detail in on the various methods to search for an element in an array in C programming. Suitable examples and sample programs have also been added so that you can understand the …

  6. C Program to Search an Element in an Array - Tutorial Gateway

    In this article, we show you, How to write a C Program to Search an Element in an Array using for loop and if else condition with examples.

  7. How to Search for an Element in an Array (Linear Search) in C

    We define a function linearSearch() that takes an array, its size, and the element to search (key) as arguments. We use a for loop to iterate through the array and compare each element with key. If a match is found, we return the index of the matching element.

  8. C program to search an element in array using pointers

    To search for an element in an array using pointers in C, we'll iterate through the array elements using a pointer, comparing each element with the target element until a match is found or the end of the array is reached. Here's a step-by-step guide to searching arrays using pointers:

  9. C Program to Search an Element in an Array - Simple2Code

    May 17, 2021 · In this tutorial, we will write a program to search an element in an array in C. There are various ways or algorithms to search an element in an array, we will use linear search. Before going further, you should have knowledge of the following topics in C programming. Array in C; for loop in C; Explanation:

  10. C Program to Find an Element Using Linear Search

    C program for finding an element using Linear Search. Linear Search is a process of searching given Array elements in sequential order.

  11. Some results have been removed
Refresh