Double ternary operator

Report a typo

What can the following statement return for different variable values?

int result = (b1 && b2) ? 10 : (b2 || b3) ? 20 : 30; 
Select one or more options from the list
___

Create a free account to access the full topic