answersLogoWhite

0


Best Answer

entirely different things

conditional operator:
? :

logical operators:
AND: &&
OR:
NOT: !

also you can count
XOR: !=

eg:
if ((a==3) != (b==c)) printf ("XOR: Exactly one of the two conditions is true\n");

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between Conditional and Logical operator in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Explain the Difference between bitwise operator ' and ' and address operator ' and ' of pointer?

The bitwise logical operator and (&) calculates the bitwise logical and of two integral values. It is a binary operator.The address of (&) operator returns the address of the value to its right. It is a unary operator.The distinction between the two is one of context. The logical and operator will follow (and be preceeded by) a value, while the address of operator will follow an operator.


What is the difference between the assignment operator and the equals operator?

The quality operator and the assignment operator are binary operators; they have two operands, one on either side of the operator. The equality operator is a Boolean operator which compares the two operands, returning true if they have the same logical state, otherwise false. E.g., x==y returns true if x and y have the same logical state, otherwise false. The operator is commutative, such that x==y is the same as y==x. The assignment operator sets the value of the left operand to that of the right operand, such that they both have the same logical state. After assignment, the left operand is returned. E.g., x=y returns x while y=x returns y. After the assignment, x==y must be true.


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 is the difference between the or logical operator and the Xor operator?

The or operator will evaluate to true if either side of the operation is true.The xor operator will evaluate to true only if exactly one side of the operation is true.This means that these two operators will evaluate equally for all cases except when both sides of the operations are true.true or true -> truetrue xor true -> false


What is the difference between conditional statements and looping statements?

The main difference is how often they run. A conditional statement - often an IF - may or may not run. If it does (depending on whether a condition is fulfilled), it runs only once. A looping statement - often a WHILE or FOR - is designed to repeat, while a certain condition is true.

Related questions

Explain the Difference between bitwise operator ' and ' and address operator ' and ' of pointer?

The bitwise logical operator and (&) calculates the bitwise logical and of two integral values. It is a binary operator.The address of (&) operator returns the address of the value to its right. It is a unary operator.The distinction between the two is one of context. The logical and operator will follow (and be preceeded by) a value, while the address of operator will follow an operator.


Differentiate between conditional and unconditional controls in qbasic?

A 'conditional' statement is a logical test while unconditional statement will cause the computer to branch.


Difference between physical and logical DFD?

difference between physical and logical data flow diagrams.


What is difference between in conditional love and emotional love?

Conditional love has conditions, while emotional love does not.


Is there is any difference between -algebra and operator algebra?

Only the word "operator"


What is the difference between conditional and unconditional transfer of control?

Conditional - Imposing, depending on, or containing a condition. Unconditional - without conditions or limitations.


What is the difference between biological and biopotential amplifiers?

difference is logical and potential


The difference between intuitive thinking and logical thinking?

The Difference is Logical Is with your head, Intuative is with your heart. Which is Mind over Heart.


What is the difference between historical and logical context?

History is not real, logical things are real, like if a dog is logical


What is the difference between the assignment operator and the equals operator?

The quality operator and the assignment operator are binary operators; they have two operands, one on either side of the operator. The equality operator is a Boolean operator which compares the two operands, returning true if they have the same logical state, otherwise false. E.g., x==y returns true if x and y have the same logical state, otherwise false. The operator is commutative, such that x==y is the same as y==x. The assignment operator sets the value of the left operand to that of the right operand, such that they both have the same logical state. After assignment, the left operand is returned. E.g., x=y returns x while y=x returns y. After the assignment, x==y must be true.


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 is the difference between the or logical operator and the Xor operator?

The or operator will evaluate to true if either side of the operation is true.The xor operator will evaluate to true only if exactly one side of the operation is true.This means that these two operators will evaluate equally for all cases except when both sides of the operations are true.true or true -> truetrue xor true -> false