About 3,790,000 results
Open links in new tab
  1. How to Find Maximum Value in an Array in C? - GeeksforGeeks

    Feb 22, 2024 · We can find the maximal value in an array by taking a variable max and repeatedly comparing it to the elements of the array using loops. Initialize a variable maxVal with value arr …

  2. Finding Max Number in an Array C Programming - Stack Overflow

    Nov 6, 2009 · printf("Max of x is %d\n", maxValue(x, sizeof(x)/sizeof(x[0]))); printf("Max of y is %d\n", maxValue(y, 10)); return 0; By definition, the size of an array cannot be negative. The …

  3. C Program To Find Maximum & Minimum Element In Array | C

    Apr 15, 2025 · C program to find the maximum and minimum element in an array – In this article, we will brief in on the many ways to find the maximum and minimum element in an array in C …

  4. C program to find the largest number in an array

    C program to find the largest number in an array using a function and without it. We also print the index at which it's present. How to find max value in an array? Algorithm to get max value: we …

  5. C Program to find Maximum Value of an Array | CodeToFun

    Oct 6, 2024 · Compile and run the program to find the maximum value in the new array. The program defines a function findMax that takes an array and its size as input and returns the …

  6. C Program: Find the maximum and minimum element in an array

    Mar 18, 2025 · The task involves writing a C program to find and display the maximum and minimum elements in an array. The program will take a specified number of integer inputs, …

  7. C Program to Find Largest Element in an Array

    In this C programming example, you will learn to display the largest element entered by the user in an array.

  8. C Program to Find Maximum Element in Array - W3Schools

    This program find maximum or largest element present in an array. It also prints the location or index at which maximum element occurs in array. Program: #include <stdio.h...

  9. C Program to Find Largest Element in an Array | GeeksforGeeks

    Nov 20, 2024 · In this article, we will learn how to find the largest element in the array using a C program. The simplest method to find the largest element in the array is by iterating the array …

  10. c program to find maximum and minimum number in an array

    In this program, you will write how to find the maximum or minimum element in an array. int a[50],i,j,max,min,n; printf ("\nenter the size of array:"); scanf ("%d",&n); printf ("enter element in …

Refresh