Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / vara
#include<stdio.h>
void main()
{
int a,b;
printf("enter a and b values");
scanf("%d%d",&a,&b);
a>b?printf("%d",a):printf("%d",b);
}
| Is This Answer Correct ? | 89 Yes | 11 No |
Post New Answer View All Answers
What is c language and why we use it?
Define macros.
What is data type long in c?
Explain what does it mean when a pointer is used in an if statement?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What are control structures? What are the different types?
How to declare a variable?
In a header file whether functions are declared or defined?
What are the different properties of variable number of arguments?
What is the Purpose of 'extern' keyword in a function declaration?
What is meant by initialization and how we initialize a variable?
How are pointers declared in c?
Explain what is wrong with this statement? Myname = ?robin?;
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What does c in a circle mean?