return function

please help me i want to know what the question mark and the colon does.

return ((value1 > value2) ? value1 : value2);
That's a ternary operator.
http://www.cplusplus.com/articles/1AUq5Di1/
thank you so much for the help.
Topic archived. No new replies allowed.