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

Describe the order of precedence with regards to operators in C.

631


Implement bit Array in C.

674


What is the size of a union variable?

598


How are portions of a program disabled in demo versions?

747


Explain what are the __date__ and __time__ preprocessor commands?

594






a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

632


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1480


simple program of graphics and their output display

1469


Is printf a keyword?

755


What is use of integral promotions in c?

664


Write a Program to accept different goods with the number, price and date of purchase and display them

5445


What do you mean by invalid pointer arithmetic?

637


What would be an example of a structure analogous to structure c?

574


What does struct node * mean?

599


ATM machine and railway reservation class/object diagram

4805