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
Why double pointer is used in c?
Where register variables are stored in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is nested structure in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Explain what is the heap?
Why do we write return 0 in c?
Can you please explain the difference between syntax vs logical error?
Can you please explain the difference between strcpy() and memcpy() function?
How can I convert a number to a string?
What is selection sort in c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is #include called?
What is the value of h?
What is the general form of function in c?