C Program to Find the Largest Element From an Array

| Last Updated: | In: C Programming Tutorial


This is a c program to find the largest element from an array. We have used the for loop and if… statement to achieve the program goal. In this program, firstly the user will enter the number of array elements and then the numbers of elements. On the basis of entered array elements, we will find the largest number and displays as output.

Find the largest element of an array in c programming language

Copy the below c program and execute it with the help of c compiler. We have executed this program and added the program output at the below of this page.

Program Output

Enter the number of elements between(1-100): 5
Enter Number 1: 8
Enter Number 2: 5
Enter Number 3: 6
Enter Number 4: 3
Enter Number 5: 19
The largest element is: 19.00


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , , , , , , ,