0

In C ++ programming language please describe this. ! , ? operators and provide an example.

28th Mar 2018, 10:51 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar
3 odpowiedzi
+ 2
// Define a to be not true or false. bool a = !true; // Assign 5 or 3 to b based on a being true. // If a is true, b becomes 5. // Otherwise, a is false so b becomes 3. int b = a ? 5 : 3;
28th Mar 2018, 11:05 PM
John Wells
John Wells - avatar
+ 1
thanks very much:))
28th Mar 2018, 11:05 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar
0
;)
28th Mar 2018, 11:07 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar