Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Array

Home > Programs > Array

5 / 23

Write a Program to find the maximum element in an array of 10 elements.

Answer:

#include 

int main()
{
   int arr[]={10,10,10,20,20,30,40};
   int n = sizeof(arr) / sizeof(arr[0]);
   int j=0;
   int temp[n];
   for(int i=0;i

Asked In :: Virtusa

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: