Search:
Forum
Beginners
return function
[try Beta version]
Not logged in
register
log in
user name:
password:
remember me
forgot your password?
or sign in using:
try again
cancel
forgot your password?
return function
Feb 10, 2013 at 4:00am
Feb 10, 2013 at 4:00am UTC
bezerkfury24
(2)
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
Feb 10, 2013 at 4:06am UTC
AbstractionAnon
(6954)
That's a ternary operator.
http://www.cplusplus.com/articles/1AUq5Di1/
Feb 10, 2013 at 4:51am
Feb 10, 2013 at 4:51am UTC
bezerkfury24
(2)
thank you so much for the help.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs