Find Largest Number in Array in C

How to Find Largest Number in Array in C

Here you will learn and get the example code to find largest number in array in c programming. We will be using integer array here. Follow the following steps to complete the program:-

Step 1 declare int array[5] and temp=0;

Step 2 Input 5 numbers in array list.

Step 3 Start a loop from first element to the last element of array.

Step 4 In between of loop check if temp value is less than array[i] value, than assign array value to temp;

Step 5 Print the value of temp variable as largest number.

Program to Find Largest Number in Array in C

Output

Enter 5 Numbers to find Largest number : 3 4 5 2 1
Value of Largest Element is 5

Check out our other C programming Examples

1 thought on “Find Largest Number in Array in C”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top