&& and || in the same expression

 

Hi,


I was wondering if we can use the operators && and || in the same expression. Do we have to put them between parentesis to avoid conflict.


For example : if(a == 1 && (b== 1 || c == 1))


Is that correct and allowed ??


Thanks

 
Correct and allowed.
Reason: