C program to find maximum element in array

By: Editorial Staff | Last Updated: | In: C Programming Tutorial


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.


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari


Tags: , , , , , , ,