+ 3

precedence question in C++

a condition like this, which is gonna get access first? if(something || something != something) it will access the || or != first?

2nd Aug 2017, 4:08 PM
Emi
Emi - avatar
5 ответов
2nd Aug 2017, 5:30 PM
Hatsy Rei
Hatsy Rei - avatar
+ 9
It will access != first because the relational operator have more priority than logical ||
3rd Aug 2017, 2:05 AM
Shweta Kumari
Shweta Kumari - avatar
+ 5
C++ Ebooks: 😂 http://index-of.es/C++/
19th Sep 2017, 7:18 PM
Muhammad Aleem Siddiqui
Muhammad Aleem Siddiqui - avatar
+ 2
well u r pretty good at c++..keep it up
6th Aug 2017, 7:16 AM
vikram pareek
vikram pareek - avatar
+ 1
@Muhammad Aleem Siddiqui thx 😂
19th Sep 2017, 11:20 PM
Emi
Emi - avatar