About 3,940,000 results
Open links in new tab
  1. Linear Search in C without Function · GitHub

    Mar 31, 2023 · Linear Search in C without Function. GitHub Gist: instantly share code, notes, and snippets.

  2. Recursive Linear Search Algorithm - GeeksforGeeks

    Jul 25, 2024 · Linear search works by comparing each element of the data structure with the key to be found. To learn the working of linear search in detail, refer to this post. Pseudocode for …

  3. Write a C program that uses non recursive function to search

    Write C programs that use both recursive and non-recursive functions. To find the factorial of a given integer. To find the GCD (greatest common divisor) of two given integers.

  4. Linear Search without Recursion: c - OneCompiler

    Two types of functions are present in C. Library Functions: Library functions are the in-built functions which are declared in header files like printf(),scanf(),puts(),gets() etc., User defined …

  5. c - Linear search algorithm with recursive call? - Stack Overflow

    Apr 16, 2012 · You cannot call a function with some return type without assigning it to a variable. In line 1 the statement linearSearch(a, n-1, key); as the function has return type thus the …

  6. Linear Search (With Code) - Programiz

    In this tutorial, you will learn about linear search. Also, you will find working examples of linear search C, C++, Java and Python.

  7. Data-sturctures-lab/linear search in recursion and non ... - GitHub

    AIM:- A C program that use both recursive and non recursive function to perform linear search for a key value in list.

  8. Linear Search in C Programming – Program and Explanation

    In this article, you will understand the concept of linear search in C programming using arrays and functions. Searching is the process of finding particular value in an array. There are two ways …

  9. C Program for Linear Search - GeeksforGeeks

    Apr 15, 2025 · Just like most of the algorithms, linear search can also be implemented using recursion: Define the recursive function that takes an array, its size, and the key as …

  10. algorithm - Recursive Linear Search - Stack Overflow

    You could use tail recursion : int LSearch(int a[],int n,int key,int i) { if(n==0) return -1; if(a[0]==key) return i; LSearch(a+1,n-1,key,++i); } while calling use the function call: LSeacrh(a,n,key,0);

Refresh