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
What does nil mean in c?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Not all reserved words are written in lowercase. TRUE or FALSE?
What is the difference between #include
How to declare pointer variables?
How can I open files mentioned on the command line, and parse option flags?
write a c program to find the sum of five entered numbers using an array named number
How to define structures? ·
Tell me when would you use a pointer to a function?
How can you find the day of the week given the date?
What does %c do in c?
What is difference between array and pointer in c?
How can I avoid the abort, retry, fail messages?
Which header file is used for clrscr?
I came across some code that puts a (void) cast before each call to printf. Why?