+ 15
|| stands for what and its use in c++
Operator in c++
17 Answers
+ 30
Logical OR operator, follows the OR truth table logic for computing.
+ 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.
+ 10
Logical OR
+ 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.
+ 6
It's logical OR.
+ 5
it's logical OR operator in C++
+ 5
OR (||) ,It is a Logical opreator that onenof condition will true and other one will be false or vice -versa
+ 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
+ 4
its an logical OR Operator in programming used for logical reasoning types problem
+ 4
logical OR
for example
if(x>10 || x<15) {
cout<<"Good"
+ 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";
}
+ 2
|| stands for what and its use in c++
Operator in c++
0
Bitwise OR 🤗
- 1
C++
- 1
(C/C++)
- 2
maybe it mighjt stand for modulus