answersLogoWhite

0


Best Answer

int max (int a, int b) { return a>b?a:b; }

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a c program to find biggest among two numbers using conditional operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you download c compiler?

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


What is a conditional cash transfer program?

A Conditional Cash Transfer program's main role is to provide the needed income for a family who may have low salary in order for them to live happily.


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

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


How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


What program is not a cash transfer program?

Conditional Cash Transfer Programmes (CCTs) Conditional cash transfer programmes (CCTs) are a special form of social assistance schemes which provides cash to families subject to the condition that they fulfil specific behavioural requirements.


What is the program for compare two strings using conditional operator in java?

System.out.println(a.equals(b) ? "They are equal" : "They are different");System.out.println(a.equals(b) ? "They are equal" : "They are different");System.out.println(a.equals(b) ? "They are equal" : "They are different");System.out.println(a.equals(b) ? "They are equal" : "They are different");


How a program in c that will add 2 numbers without using any plus operator?

int main() { int a=10,b=20; while(a--) b++; printf("%d",b); } or: a -= -b;


What is the order of precedence with regard to the operator used in embedded C program?

Operator precedence in embedded C is exactly the same as in standard C.


How do you solve central difference in Matlab?

Possibly the Program Stepping Operator by Matlab.


Write a program to divide 2 numbers without using the division operator?

int divide1(int a,int b) { int t=1; while(b*t<=a) { t++; } return t-1; }


How can you create a file called history by using a redirection operator?

somecommand > historywhere somecommand is the program that normally prints to stdout. The redirection operator is the > symbol.


What is the biggest entitlement program?

Veterans administration.