'How to return the max value between 3 values? [duplicate]
I am trying to return the max value using the max function but its not working on 3 values.
CodeBlocks Error:
error: '__comp' cannot be used as a function
The Code:
#include <iostream>
using namespace std;
int main()
{
cout << max(5, 10, 20);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
