biggest of two no's with out using if condition statement
Answer Posted / jasna.c
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,big;
printf("\nEnter the two numbers ");
scanf("%d%d",&a,&b);
big=(a>b)?a:b;
printf("\n The biggest number is %d",big);
getch();
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is structure packing in c?
Explain what is the benefit of using #define to declare a constant?
Can a file other than a .h file be included with #include?
What is the description for syntax errors?
Can static variables be declared in a header file?
What is #define?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What is data type long in c?
Are the outer parentheses in return statements really optional?
How can I send mail from within a c program?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Explain what is a program flowchart and explain how does it help in writing a program?
Why dont c comments nest?
difference between Low, Middle, High Level languages in c ?