Answers for "c++ what is or logic"

C++
0

Or in c++

/*
In c++ or c, "or" can be || 
example*/

if(a=1 || a=2){
  b++
  }
Posted by: Guest on January-30-2022
0

or in c++

The logical OR operator ( || ) returns the boolean value true if either or both operands is true and returns false otherwise. The operands are implicitly converted to type bool before evaluation, and the result is of type bool . Logical OR has left-to-right associativity.
Posted by: Guest on January-07-2022

Browse Popular Code Answers by Language