arithmetic operators c++ code example
Example 1: how to write an or in c++
if (a == 0 || b == 0)
{
//statement here, || was used as an or
}
Example 2: operand-- c++
++x;
x+=1;
x=x+1;
if (a == 0 || b == 0)
{
//statement here, || was used as an or
}
++x;
x+=1;
x=x+1;