0

If ( 1&&0 %10>=0) print f ('two') else print f ('two') else print f ("three " )

What will be the output

29th Mar 2023, 5:37 AM
Subhasmita Dash
Subhasmita Dash - avatar
5 Antworten
0
Explain it.
29th Mar 2023, 5:41 AM
Subhasmita Dash
Subhasmita Dash - avatar
+ 8
Subhasmita Dash , did you make a try by yourself? it does not really help you to understand it by just posting and asking. > *run* this code in playground to get the answer. > ***work*** with this code, modify the values in the *if - branch* to see what the result of this modification is. > use google to more information about e.g. what *1&&0 %10* means, how it will be evaluated (operator precedence), ... > if you still get stuck, start learning from the *c* tutorial. > then try it again.
29th Mar 2023, 6:49 AM
Lothar
Lothar - avatar
0
What will be displayed when the following c code segment completes execution? If (1&&0 %10) print f ("one") elseif (1&&0 %10>=0) print f ("two") else print f ("three")
29th Mar 2023, 5:40 AM
Subhasmita Dash
Subhasmita Dash - avatar
0
Did uh can answer this question?
29th Mar 2023, 6:50 AM
Subhasmita Dash
Subhasmita Dash - avatar
0
I didn't understand it 🤐
29th Mar 2023, 6:52 AM
Subhasmita Dash
Subhasmita Dash - avatar