Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

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: