Syntax question "? a : b;"?
In the following code below.
1 2 3 4 5 6 7
|
Template <typename T>
T maximum(T a, T b) {
T result;
result = (a > b) ? a : b;
return result;
}
|
On the line where it says:
result = (a > b) ? a : b;
what exactly does that mean?
Last edited on
Topic archived. No new replies allowed.