Question Mark in C++ | Sololearn: Learn to code for FREE!

0

Question Mark in C++

What does the question mark mean in C++

c++

10/15/2019 2:47:28 PM

OnesAndZeroes10

2 Answers

New Answer

+3

It is the ternary operator. For more about this, you can read at the following: http://www.cplusplus.com/articles/1AUq5Di1/

+1

(bool)? value: value; https://code.sololearn.com/c2ugHxQEgYjV/?ref=app