answersLogoWhite

0

What character is used in an OR operator?

Updated: 8/10/2023
User Avatar

BlackMarket

Lvl 1
9y ago

Best Answer

The logical OR operator in C and Java is the double vertical bar ().

Example: if (s 0) do something

The operator applies a logical OR operator when it evaluates the expression.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

The pipe character ( | ) is used as an OR operator. For example, in the programming code: if (($value1 3)) { print "True"; } the double pipe is the OR operator and means if value1 equals 2 OR value2 equals 3 print "True" to the screen. The ampersand, bracket, and colon are all used differently depending on where they are being used.

==================

If you are talking about boolean algebra then its '+'.

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

Colon

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What character is used in an OR operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which operator is used in character string comparisons with pattern matching?

select *from emp


Which comparison operator means not equal to?

"≠" is used in mathematics, though because of the limitations of the Ascii character set then != is often used in programming. In Microsoft Excel, the comparison operator that means "not equal to" is either NOT, or <>.


Why and operator can not be used in string of c program?

Any character can be used in string, except for \\0. char example [] = "A&B|C";


Is the ampersand character the concatenation operator in excel?

yes


What is the concatenation operator called for excel?

The ampersand, which is this character: &


What logical operator is used to reverse the boolean operator?

NOT


What is the operator is used to allocate the memory in c plus plus?

calloc operator,malloc operator


Can an IN operator can be used instead or the OR operator in phrasing certain conditions?

True


Which operator is used to determine if the operands are not exactly of the same value?

!= is the correct operator.


Use of scope resolution operator in C programming?

:: operator can not be used in C.


What is operator over loading?

Same operator can be used for different purposes like + can be used for addition of two integers and used for concatenate strings.


What happen when a java keyword new is used in an application?

When the new operator is used, a new object is created, based on the specified class.When the new operator is used, a new object is created, based on the specified class.When the new operator is used, a new object is created, based on the specified class.When the new operator is used, a new object is created, based on the specified class.