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

Answer Posted / abhilash.d

void main()
{
int a,b,big;
printf("enter the values of a,b");
scanf("%d%d",&a,&b);
big=a>b?a:b;
printf("biggest of two no is:%d",big);
}

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of linkage exist in c?

611


Explain about C function prototype?

603


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

2518


Explain what are preprocessor directives?

623


What are pointers really good for, anyway?

610






How do you print an address?

740


find out largest elemant of diagonalmatrix

1646


Explain how are 16- and 32-bit numbers stored?

781


How does selection sort work in c?

617


ATM machine and railway reservation class/object diagram

4798


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

727


Write a program to print numbers from 1 to 100 without using loop in c?

633


Explain can the sizeof operator be used to tell the size of an array passed to a function?

591


Difference between Function to pointer and pointer to function

625


What header files do I need in order to define the standard library functions I use?

535