C Program to Find Largest and Smallest Element in Array

By | April 19, 2013

Here is the C program to find the largest and smallest element in a one dimensional (1-D) array.



How many elements:5
Enter the Array:1 8 12 4 6
The largest element is 12
The smallest element is 1

Leave a Reply

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