answersLogoWhite

0

exp ? exp : exp

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Enumerate the types of selection constructs in c plus plus?

Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)


What is the conditional operators in c language?

The conditional operator is also known as ternary operator. It is called ternary operator because it takes three arguments. The conditional operator evaluates an expression returning a value if that expression is true and different one if the expression is evaluated as false.Syntax:condition ? result1 : result2If the condition is true, result1 is returned else result2 is returned.


Why c language has name c why not a?

C-language was derived from B-language.


What is C language what does it do?

C Language is First Step of Programming Language, Help for C Language you are show the correct answer


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.

Related Questions

What is mix mod operation in c language?

Nothing.


Enumerate the types of selection constructs in c plus plus?

Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)


What is Rondo Ternary and Binary form?

In music Binary, Ternary and Rondo are like the layout of a song. So say A represents a verse, B a chorus and C would represent a Bridge! Binary would be A,B (Verse, chorus) Ternary would be A,B,A (Verse, chorus, verse) Then Rondo would be A,B,A,C,A (Verse, chorus, verse, bridge, verse)


What is condional operator?

Conditional Operator- Its the only ternary operator in c/c++.- Its syntax is-(condition)?statement1:statement2;-Shruti Jain


How can you download c compiler?

write a c program to fine largest/smallest of 3no (using ?:ternary operator/conditional operator)


Is Frederick Chopin's Etude op 10 No 12 in C minor a two part form musical piece?

False. It is an example of three-part or ternary form.


What is the conditional operators in c language?

The conditional operator is also known as ternary operator. It is called ternary operator because it takes three arguments. The conditional operator evaluates an expression returning a value if that expression is true and different one if the expression is evaluated as false.Syntax:condition ? result1 : result2If the condition is true, result1 is returned else result2 is returned.


C program to find the largest among three numbers using ternary operator?

max = a > b ? a : b; max = max > c ? max : c;


What symbol is used in Ternary form?

it is used in = TERNARY FORM .$.


Is the song ako ay nagtanim binary or ternary?

ternary


When was Operation C created?

Operation C was created on 1991-01-08.


When did Operation C happen?

Operation Cobra happened on 1944-07-31.