+9

|| stands for what and its use in c++

Operator in c++

c++

6/17/2019 8:01:16 AM

Born MaD

18 Answers

New Answer

+15

https://docs.microsoft.com/en-us/cpp/cpp/logical-or-operator-pipe-pipe?view=vs-2019 This will let you know about it. Basically it is called as "Logical OR" operator......

+13

Logical OR operator, follows the OR truth table logic for computing.

+12

"||" is known as logical OR. It is use to evaluate logical operations. [Example]: Int x=(1||0); printf("%d",x); [Output] : 1 [Note]: every non zero value is considered as true.

+7

Logical OR

+6

https://www.sololearn.com/learn/CPlusPlus/1619/?ref=app

+5

It is known as logical OR. The OR (||) operator returns true if any one of its operands is true. It is used as 'or' in cpp. As you work with if : if (name=="Tom"||name=="Jack"){ cout << "Hello" << name << endl; } //in this type you can store many names and other things, if user will type Tom then it will run the 'if' program or if it types Jack it will also run but not other then these two, ya others can be when you will add there in 'if' using ||. There are many uses also this was just a example.

+4

It's logical OR.

+3

it's logical OR operator in C++

+3

OR (||) ,It is a Logical opreator that onenof condition will true and other one will be false or vice -versa

+2

Logical or y=(1==2||3==3) It means the given case is true if either of the case is true so the value of y becomes 1 which means true

+2

its an logical OR Operator in programming used for logical reasoning types problem

+2

logical OR for example if(x>10 || x<15) { cout<<"Good"

+2

It stands for "LOGICAL OR" It returns TRUE value, when any one of the condition is true example: // TO CHECK GIVEN CHARACTER IS VOWEL OR NOT if((letter=="a") || (letter=="e") || (letter=="i") || (letter=="o") || (letter=="u") || (letter=="A") || (letter=="E") || (letter=="I") || (letter=="O") || (letter=="U")) { cout << "THE CHARACTER IS VOWEL"; } else { cout << "THE CHARACTER IS NOT A VOWEL"; }

+1

|| stands for what and its use in c++ Operator in c++

-2

C++

-2

(C/C++)

-2

Bitwise OR 🤗

-4

maybe it mighjt stand for modulus