Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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 Respostas
+ 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