Program to find larger of the two numbers without using if-else,while,for,switch

Answers were Sorted based on User's Feedback



Program to find larger of the two numbers without using if-else,while,for,switch..

Answer / vara

#include<stdio.h>
void main()
{
int a=4,b=5;
a>b?printf("a is greater than big"):b is pig
}

Is This Answer Correct ?    10 Yes 25 No

Post New Answer

More C Interview Questions

Is null always defined as 0(zero)?

0 Answers  


What is bss in c?

0 Answers  


Explain what is meant by 'bit masking'?

0 Answers  


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

0 Answers  


Explain high-order bytes.

0 Answers  






what is a constant pointer in C

0 Answers  


why integer range between -327680to+32767

2 Answers  


Why is a semicolon (;) put at the end of every program statement?

0 Answers  


Explain what is wrong with this program statement? Void = 10;

0 Answers  


program for validity of triangle from 3 side

7 Answers  


write an algorithm and c program to add two 2x2 matrics

2 Answers  


Simplify the program segment if X = B then C &#8592; true else C &#8592; false

0 Answers  


Categories