output to the screen

I need to retun the highest value of an array out to the screen, this is my code.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
//#include <ctime>
using namespace std;

     const int SIZE=10;		         

     int fmax(int[SIZE]);        
                                                 

int main()
{
	int values[]={1,3,4,5,3,8,10,99,34,45};               
	//printArray(values, 10);
	cout << fmax(values) << "\n";
       
       return 0;
}

Last edited on
Do U need the logic and code for the fmax() function ???
Or something else U need !!!
Topic archived. No new replies allowed.