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
Which is the memory area not included in C program? give the reason
How is a null pointer different from a dangling pointer?
How can I generate floating-point random numbers?
How can I find the modification date and time of a file?
What is the difference between arrays and pointers?
What is static memory allocation?
What is typedf?
How do I swap bytes?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
How many types of operator or there in c?
Explain what is the purpose of "extern" keyword in a function declaration?
What does int main () mean?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What are shell structures used for?
Why is it usually a bad idea to use gets()? Suggest a workaround.