+ 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
9 Antworten
+ 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