C program to find biggest number from array

Program in the C programming language to find the biggest element or number from the array of any size. Below is the code of the C program –

/* C program to find the biggest element or no. from the array */
#include<stdio.h>
#include<conio.h>
void main()
{
     int ar[100],big,i,n;
     
     printf("Enter the size of the array to input the elements \n");
     scanf("%d",&n);
     
     printf("Enter the elements of the array \n");
     for(i=0;i<n;i++)
     {
           scanf("%d",&ar[i]);
     }
     
     big=ar[0];
     for(i=0;i<n;i++)
     {
           if(ar[i]>=big)
           {
                 big=ar[i];
           }
     }
     printf("Largest number of the array is %d",big);
     getch();
}

yashan has written 70 articles

6 thoughts on “C program to find biggest number from array

    1. Graceland says:

      Hello Aditi,You are absolutely correct there. Many people do blogging for hobby, that makes them feel good, but these days, most of the people do this for money, especially, yosrAstenu.gnd yes, that’s true that blogging helps us to meet new, different people around the world. That is my favorite part by the way.Abhi recently posted..

    2. http://www./ says:

      cooing coon uts:hobama is just warming upask a libyanand the next prez will be worse than hobama because u hobama nazis made it OK for hobama to abuse the poor/blacks OPENLY and more BRUTALLY than any other prez EVER…nigs like you have just begun to feel the pain that YOU have designedu have not heard any shriek yet mfuntil you hear your belated ownbet!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>