biggest of two no's with out using if condition statement

Answer Posted / ramanjaneyareddy

#include<stdio.h>
main()
{int a,b,c;
scanf("%d%d",&a,&b);
c=(a>b)?a:b;
printf("%d",c);
return(0);
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of & in scanf?

588


What is an operator?

653


Where are local variables stored in c?

562


What is use of bit field?

762


How can I open a file so that other programs can update it at the same time?

653






What is c language in simple words?

586


How can I pad a string to a known length?

605


What is a function simple definition?

604


What is include directive in c?

636


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

628


what is reason of your company position's in india no. 1.

1770


What is spark map function?

578


What is the return type of sizeof?

583


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

702


Explain the advantages of using macro in c language?

568