0

Why?

I faced the below problems in my solo learn challenge can someone explain the reason behind the answer? https://www.sololearn.com/post/331458/?ref=app

17th Apr 2020, 5:50 PM
Akash
Akash - avatar
2 ответов
+ 2
In C, all non-null values are considered to be true, so both 2 and 4 are converted accordingly, thus the entire condition is true as well. Then, the boolean equivalent for true is one, hence the output.
17th Apr 2020, 6:30 PM
Shadow
Shadow - avatar
0
Shadow now i get it, thanks mate
18th Apr 2020, 5:49 PM
Akash
Akash - avatar