+ 15

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

Operator in c++

17th Jun 2019, 8:01 AM
Born MaD
Born MaD - avatar
18 Antworten
+ 30
Logical OR operator, follows the OR truth table logic for computing.
19th Jun 2019, 2:12 AM
PRASAN21
PRASAN21 - avatar
+ 13
"||" 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.
18th Jun 2019, 3:45 PM
Manoj
Manoj - avatar
+ 10
Logical OR
17th Jun 2019, 8:45 AM
Sonic
Sonic - avatar
17th Jun 2019, 6:59 PM
Kainatic [Mostly Inactive Now]
Kainatic [Mostly Inactive Now] - avatar
+ 8
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.
17th Jun 2019, 8:34 AM
Aman Kumar
Aman Kumar - avatar
+ 6
It's logical OR.
18th Jun 2019, 6:54 PM
Sandesh Dinkar
+ 5
it's logical OR operator in C++
17th Jun 2019, 10:19 AM
Revathi R
Revathi R - avatar
+ 5
OR (||) ,It is a Logical opreator that onenof condition will true and other one will be false or vice -versa
18th Jun 2019, 5:57 PM
Mayank Chattree
Mayank Chattree - avatar
+ 4
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
17th Jun 2019, 6:26 PM
Akash Raj
Akash Raj - avatar
+ 4
its an logical OR Operator in programming used for logical reasoning types problem
18th Jun 2019, 6:22 AM
Amandeep
Amandeep - avatar
+ 4
logical OR for example if(x>10 || x<15) { cout<<"Good"
19th Jun 2019, 2:33 AM
Sodbileg
Sodbileg - avatar
+ 4
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"; }
23rd Jun 2019, 4:48 AM
Prasanna T G
Prasanna T G - avatar
+ 2
|| stands for what and its use in c++ Operator in c++
19th Jun 2019, 1:24 PM
REAL MADRID
REAL MADRID - avatar
0
Bitwise OR 🤗
18th Jun 2019, 2:01 AM
Sanjay Kamath
Sanjay Kamath - avatar
- 1
C++
17th Jun 2019, 10:23 PM
Travis
- 1
(C/C++)
17th Jun 2019, 10:23 PM
Travis
- 2
maybe it mighjt stand for modulus
19th Jun 2019, 3:05 AM
slick
slick - avatar