Num 1
Num 1
This site uses cookies to deliver our services and to show you relevant ads. By using our site, you
acknowledge that you have read and understood our Privacy Policy. Your use of w3resource Services, is
subject to these policies More info
w3resource
Write a C++ program to find the largest element of a given array of integers.
Pictorial Presentation:
Sample Solution:
C++ Code :
#include<iostream>
int main() {
int nums[] = {
5,
4,
9,
12,
};
cout << "\nLargest element of the said array: "<< find_largest(nums, n);
return 0;