Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / kristian vitozev
#include <stdio.h>
int main(void)
{
int a = 7, b = 25;
a>b ? printf("%d [a]",a) : printf("%d [b]", b);
return 0;
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
What is meant by initialization and how we initialize a variable?
Which is an example of a structural homology?
Is c easier than java?
Where static variables are stored in memory in c?
Write a program that accept anumber in words
What is c++ used for today?
When should a far pointer be used?
Should I learn data structures in c or python?
What is methods in c?
Explain what is a stream?
Explain the difference between the local variable and global variable in c?
If the size of int data type is two bytes, what is the range of signed int data type?
What is difference between static and global variable in c?
What are the rules for identifiers in c?
How can I avoid the abort, retry, fail messages?