answersLogoWhite

0


Best Answer

The logical OR operator can be compared to ____ in terms of precedence.

User Avatar

Wiki User

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

Wiki User

12y ago

"= (assignment)" and ":="

Both these two have the same precedence which is lower than all the other logical operators

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Logical or operator can be compared to what in terms of precedence?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is difference between conditional operator and bitwise operator?

A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.


What are Short circuit operators in c language?

&& and are short circuit operator in C. It means that expressions chained with these operators are only evaluated until the result is unambiguously determined. For example, the expression a && b is guaranteed to be false if a is false. In this case, the term b is not evaluated, and any possible side-effects of b will not occur. The logical OR () is implemented in a similar fashion: c d is guaranteed to be true of c evaluates to true, and d is not being evaluated in this case. The ternary ? operator is not a short circuit operator (this was listed as a short-circuit operator in a previous revision of this answer). An expression that uses the ternary operator, for example e = f ? g : h is nothing but an alternative form of an if-else construct. The terms f, g and h may each contain short-circuit operators and be evaluated in the manner discussed above, but the ternary operator itself has no short-circuit characteristic.


Can a while statement end in a semicolon?

Yes. A while statement ends in a statement...while (expression) statement...and that statement can be a null statement, a single statement, or a block of statements. In the case of the block of statements, there is also a set of braces surrounding them...while (expression);while (expression) statement;while (expression) {statement1;statement2;...statementN;}In the case where the body of the statement is null, there is no body. This is often done while taking advantage of side effects. For instance, to copy a string you could use...char *strcpy (char *pszDestination, char *pszSource) {char *pszTemp = pszDestination;while ((*pszDestination++ = *pszSource++) != '\0');return pszTemp;}...this works because the post-increment (++) operator has higher precedence than the dereference (*) operator, and because the assignment (=) operator has the value of the assignment, which is compared using the not equal (!=) operator against the string terminator null.Note, carefully, the inner parentheses. They are needed because != has higher precedence than =, and you want it the other way around. Also, some compilers will let you eliminate the != '\0' terms and the inner parentheses, but that is not portable, and most compilers will warn you about assignment in a conditional expression.In the case of a single statement you could use...i= -1;while (++i < argc) printf ("%d %s\n", i, argv[i]);...here the while statement also ends in a semicolon.The case of the block of statements is not shown, because it seems to be understood from the context of the question.


What are the advantages of De Morgan's laws?

De Morgan's laws concisely relate the AND and OR logical operators to each other in terms of each other's negation.


How operator overloading differ from function overloading?

Function overloading is multiple definition with different signatures(the parameters should be different) for the same function. The parameter list have to be different in each definition. The compiler will not accept if the return type alone is changed. Operator overloading is defining a function for a particular operator. The operator loading function can not be overloaded through function overloading.

Related questions

What is difference between conditional operator and bitwise operator?

A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.A binary operator is simply an operator that has two parts, written to the left and to the right of the operator, e.g.:1 + 2The binary operator can be a logical operator ("and", "or", "xor", etc. - but "not" is a unary operator), or it can be in some other category, like the arithmetic operator shown above.


What does an amateur radio operator mean when he says X-Y-L?

It is used in ham radio terms as a term for the wife of the ham operator.


What is meant by precedence of lines?

This phrase is used when obtaining orthographic views. It is common for one type of line to overlap another. For instance, a continuous line might be in the same location as a hidden line. For this reason, there is an order of precedence in terms of drawing conventions and standards. Typically the continuous line will have greater value or will "take precedence" over the hidden line, while the hidden line will take precedence over the centerline.


What does the dot member access operator indicate in the text SystemWindowsFormsLabel?

The dot member access operator (or, in simple terms, the period) specifies the hierarchy of namespaces.


What does logical?

Logical means capable of, or reflecting the capability for correct or valid reasoning. Something or someone that is logical makes sense in terms of abstract thought, but not necessarily in terms of knowledge or experience. "I know it's not logical that people would elect leaders who they know to be corrupt, dishonest, lying theives who have no concern for the people at large, but they do it anyway."


What terms are accepted without proof in a logical system geometry?

Such terms are called axioms, or postulates.Exactly which terms are defined to be axioms depends on the specific system used.


What is the first step in solving an equation using logical sequencing?

Combine like terms


Can computers use language the way humans do?

No, computers are logical. They can only "understand" logical statements. Language is largely emotive and non-cognitive. No computer can understand language, they can just be programmed to equate terms to logical strings and commands


When two search terms are connected with the OR Boolean operator the number of hits will generally?

The answer will increase in numbers.


Is this true A Using the Boolean operator AND between terms narrows a search by requiring that all terms be present in each record retrieved?

Yes, it is true.


Did early man explain observed events of nature in terms of superstitions guesses or logical evaluations.?

true


Early man explained observed events of nature in terms of superstitions guesses or logical evaluations.?

true