biggest of two no's with out using if condition statement
Answer Posted / ramanjaneyareddy
#include<stdio.h>
main()
{int a,b,c;
scanf("%d%d",&a,&b);
c=(a>b)?a:b;
printf("%d",c);
return(0);
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is adt in c programming?
Why does everyone say not to use scanf? What should I use instead?
What is the advantage of a random access file?
What is the difference between the = symbol and == symbol?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What is use of integral promotions in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What are the characteristics of arrays in c?
How pointer is different from array?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What are the salient features of c languages?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Why do we need arrays in c?
What are conditional operators in C?
What is array of structure in c?