+ 13
How the answer is 1 1?
See the below Screenshot. It's a challenge question. Need explaination. Here we are doing x = 8. It's mean we have assigned 8 to x then why 1 1? https://photos.app.goo.gl/jtrP9aKSvxqHazWM7
5 Answers
+ 8
if(a = 8 || b==5)
Happens like
if( a = (8 || b ==5))
Then a = 1 => (8 || b==5) return true.
Because of associatity & Operator precedence in c++
+ 5
Thanks Mouli đŽđł [ Inactive ] and JayakrishnađŽđł
+ 3
1 1 because if comparison uses Boolean operators which are logical operators not integer values đ¤
+ 2
đ#H P 22â˘đ This question is asked by me . If she is saying welcome on my reply then what is your problem?
- 2
23 hrs