[try Beta version]
Not logged in

 
return function

Feb 10, 2013 at 4:00am
please help me i want to know what the question mark and the colon does.

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