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

Answer Posted / amit

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare a variable?

756


How can I make sure that my program is the only one accessing a file?

926


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1619


If you know then define #pragma?

856


What is sizeof in c?

756


Why main function is special give two reasons?

1197


Why doesnt this code work?

798


write a program to display all prime numbers

1651


What are 'near' and 'far' pointers?

803


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

1021


What is difference between structure and union in c programming?

766


Do variables need to be initialized?

802


Write the syntax and purpose of a switch statement in C.

835


What is the condition that is applied with ?: Operator?

862


What are categories used for in c?

794