without using control structures and control structures find the max and min of given 2 nos



without using control structures and control structures find the max and min of given 2 nos..

Answer / chavidi

by using ternary operators we can find the max number among
2 numbers
a>b?a:b;

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More C Interview Questions

What is the difference between strcpy() and memcpy() function in c programming?

0 Answers  


The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters

0 Answers  


write a program to sort the elements in a given array in c language

10 Answers   TCS,


How can a program be made to print the line number where an error occurs?

0 Answers  


What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

21 Answers   ADITI, Student, TCS,






What is indirection?

0 Answers  


how do you programme Carrier Sense Multiple Access

0 Answers  


enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?

4 Answers   TCS,


What do you mean by keywords in c?

0 Answers  


What is the modulus operator?

0 Answers  


What is scope rule of function in c?

0 Answers  


Using which language Test cases are added in .ptu file of RTRT unit testing???

0 Answers  


Categories