Can I use ternary operator in following way in C++
24759
How do I use the conditional (ternary) operator?
44975
Or operand with int in if statement
66487
What are the Pointer-to-Member ->* and .* Operators in C++?
29450
Stacking Multiple Ternary Operators in PHP
102232
Checking whether a number is positive or negative using bitwise operators
38906
What is the "-->" operator in C/C++?
57499
How to overload the indirection operator? (C++)
87995
Assignment statement used in conditional operators
100421
How to write this boolean expression using only NOR gates?
155686
What is a reason of placing boolean or null before comparison operator?
143769
Implicit conversion issue in a ternary condition
147617
Javascript ternary operator
54577
Java: Ternary with no return. (For method calling)
145046
comparing float/double values using == operator
41022
Why does the ternary operator unexpectedly cast integers?
139316
Prettiness of ternary operator vs. if statement
109567
How does operator  work when comparing two strings?