answersLogoWhite

0

R = (A > B && A > C) ? A : (B > C) ? B : C; // parentheses not necessary - for clarity only

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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

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


What is the name of the expression that is formed by using logical operators?

Ternary operator


How can you download c compiler?

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


How do you write a program to find out largest number between two numbers using ternary operators?

// assume you want the find the largest of ints a,b,c: int max = (a>b&&a>c?a:b>c?b:c);


Write a c plus plus program to find largest among three number using control statement and ternary operators?

int max (int a, int b) { return a<b?b:a; } int max3 (int a, int b, int c) { return max (max (a, b), c); }


What are the numbers that are used in the ternary system?

0 1 and 2


How are Integers combined?

All numbers - integers as well as non-integers - are combined using different mathematical operations. Some operators are binary: that is, they combine two numbers to produce a third; some are ternary (combine 3 to produce a fourth) and so on.The set of integers is closed under some operations: common examples are addition, subtraction, multiplication, exponentiation. But not all operators are: division, for example.


What is a logical variable in PHP?

Maybe your speaking a variable that contains a ternary operators such as:


What are special operators in c plus plus?

The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().


How do you find the greatest of three numbers using ternery operator?

Compare the first two numbers with the ternary operator. Store the result in a temporary variable. Compare the temporary variable with the third number, again using the ternary operator.


Convert 110001100 into its decimal numbers?

The answer depends on what you are converting from: binary, ternary, octal, hexadecimal ...


What symbol is used in Ternary form?

it is used in = TERNARY FORM .$.