Computer Science, asked by Morey5192, 13 hours ago

Write a C++ program to find the largest element in a given array.

Answers

Answered by atulrajcool
0

Answer:

int n;

int arr[n];

int mx=1e9;

for(int i =0;i<n;i++)

{

mx=max(mx,arr[i]);

}

cout<<mx;

Explanation:

1e9- 10^9 which is maximum value for int data type

Similar questions