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

Answer Posted / raj sarswat

void main()
{
int a,b;
printf("enter the value of a and b");
scanf("%d,%d",&a,&b);
a>b?printf("%d",&a):printf("%d",&b);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is extern c used for?

571


What is the modulus operator?

742


What is sorting in c plus plus?

568


What is difference between array and structure in c?

583


What is the purpose of the statement: strcat (S2, S1)?

644






Difference between MAC vs. IP Addressing

644


What is integer constants?

626


What is signed and unsigned?

646


How to declare pointer variables?

688


Explain how does free() know explain how much memory to release?

577


How does sizeof know array size?

634


What are the advantages of using Unions?

644


What is the purpose of void pointer?

603


What is the difference between union and anonymous union?

841


What is scope and lifetime of a variable in c?

582