answersLogoWhite

0

&& 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.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

How many operators are there in C Language?

There are several operators in the C programming language, which are used to perform various operations on variables and values. Here is a list of some of the most commonly used operators in C: Arithmetic operators: +, -, *, /, % (addition, subtraction, multiplication, division, modulus) Assignment operators: =, +=, -=, *=, /=, %=, &=, |=, ^=, = Comparison operators: ==, !=, , = (equal to, not equal to, less than, greater than, less than or equal to, greater than or equal to) Logical operators: && (AND), || (OR), ! (NOT) Bitwise operators: &, |, ^ (AND, OR, XOR) Increment and decrement operators: ++ (increment), -- (decrement) Conditional operator: ?: (ternary operator) It's important to note that there may be some additional operators depending on the specific C compiler or implementation being used.


What are the operators in c tokens?

All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &&, &, >>, << etc.


What is precedence between relational operator and arithmetic operator?

Arithmetic operators (+, -, *, /, % ) have greater precedence over relational operators (<, >, <=, >=, ==, !=) in C language.


A function is one in which the action taken for the true or false case includes yet another IF function?

The operators are &&, &, |, . IF function does not exist in C language. C has if-statements


What is mean by robust language in c language?

Robust means strong enough to withstand or overcome intellectual challenges or adversity. c is a robust language because its rich set of built-in functions and operators can be used to write any complex logic program.

Related Questions

What are the different Turbo C operators?

TurboC is a program, the language is C Some of the operators are: . -> * [] () , ?: = == < <= > >= != + += ++ - -= -- % %= / /= << <<= >> >>= ! ~ ^ & &= && | |=


What are short circuit operators in c?

there are two short circuit gates, AND gate and OR gate. AND gate produces true when all the inputs/values are true, otherwise false. OR gate produces ture result when atleat one input is true, otherwise if all the inputs are false, overall result is False. These are: && and in C


What does the job of c operators consist of?

A C operator is not a job or profession but rather a coding language. C operators perform certain tasks in programming such as a "+ " operator performs addition.


What are the mathematical operators of c?

the mathematical operators of c are.....%,*,/,+,-


How many operators are there in C Language?

There are several operators in the C programming language, which are used to perform various operations on variables and values. Here is a list of some of the most commonly used operators in C: Arithmetic operators: +, -, *, /, % (addition, subtraction, multiplication, division, modulus) Assignment operators: =, +=, -=, *=, /=, %=, &=, |=, ^=, = Comparison operators: ==, !=, , = (equal to, not equal to, less than, greater than, less than or equal to, greater than or equal to) Logical operators: && (AND), || (OR), ! (NOT) Bitwise operators: &, |, ^ (AND, OR, XOR) Increment and decrement operators: ++ (increment), -- (decrement) Conditional operator: ?: (ternary operator) It's important to note that there may be some additional operators depending on the specific C compiler or implementation being used.


What are the operators in c tokens?

All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &&, &, >>, << etc.


Explain the all operator the c language?

Visit this link http://www.cplusplus.com/doc/tutorial/operators/


What is difference between binary and unary operator in c language?

The number of arguments will be one for the unary operators and two for the binary operators. In the case of unary operators, the argument must be of the same type as that of the enclosing class or structure.


Printf and scanf Operators in C and C plus plus?

No, they are functions. Operators are -> or ++or /=


What is precedence between relational operator and arithmetic operator?

Arithmetic operators (+, -, *, /, % ) have greater precedence over relational operators (<, >, <=, >=, ==, !=) in C language.


A function is one in which the action taken for the true or false case includes yet another IF function?

The operators are &&, &, |, . IF function does not exist in C language. C has if-statements


What is mean by robust language in c language?

Robust means strong enough to withstand or overcome intellectual challenges or adversity. c is a robust language because its rich set of built-in functions and operators can be used to write any complex logic program.