0
In C ++ programming language please describe this. ! , ? operators and provide an example.
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;
+ 1
thanks very much:))
0
;)