C program to find maximum element in array

In this program, we are going to share how to find maximum element in array using C programming language. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to find maximum element in array.

C program to find maximum element in array

Copy the below C program and execute it with the help of C compiler. At the end of this program, We have shared the output of this program.

Program Output

Enter the number of elements in array
5
Enter 5 integers
12
16
18
21
23
The maximum element is present at location 5 and its value is 23.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers.

Article Tags: , , , , , , ,