+ 2

What does || this operator???

10th Jan 2017, 4:01 PM
Himanshu Singh
Himanshu Singh - avatar
8 ответов
+ 2
it is OR operator which gives condition as a choice. If one condition is true then the code will execute.
10th Jan 2017, 6:00 PM
Nawaj Shareef
Nawaj Shareef - avatar
+ 2
it's OR operation ex:x||y this statement is false iff x=y=false.
29th Jan 2017, 3:05 PM
Konduru. Chandana Sree
Konduru. Chandana Sree - avatar
+ 1
It is OR Operator. It is a comparison operator in C++. It is used to compare two values just like you compare two persons for a job. If we use this operator and either one or both the values return true, then this operator also returns true. But if both are false, then it returns false.
10th Jan 2017, 5:20 PM
Saksham Beniwal
Saksham Beniwal - avatar
+ 1
|| is the logical expression of OR. To complement: && is the logical expression of AND
26th Jan 2017, 1:28 PM
AlanPereira
AlanPereira - avatar
0
is a or operator: The return value are easy to understand. return true, if one of the values or both are true. return false, if both are falsr.
10th Jan 2017, 4:29 PM
nextco
nextco - avatar
0
It is the OR operator. Often used in conditional statements to return true if either given condition is true. For example: if( condition1 || condition2 ){...}
11th Jan 2017, 7:21 AM
Connor Chisholm
Connor Chisholm - avatar
0
the OR operator is used in conditional statements. It will evaluate to true if at least one of the boolean values are true. Truth table: True || true => true true || false => true false || true => true false || false => false
12th Jan 2017, 1:53 AM
Aaron Sbarra
0
it OR operator which is used for condition for eg this or that
13th Jan 2017, 10:09 PM
Prajwal Khante
Prajwal Khante - avatar