Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int a=90 , b=-89;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}
thank u
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
What is the condition that is applied with ?: Operator?
what is the basis for selection of arrays or pointers as data structure in a program
What is difference between union and structure in c?
What is getch c?
How can I sort a linked list?
Explain what is the most efficient way to store flag values?
What are logical errors and how does it differ from syntax errors?
Can a pointer point to null?
What do you mean by a sequential access file?
Explain 'far' and 'near' pointers in c.
Why ca not I do something like this?
Explain the difference between malloc() and calloc() in c?
Why c is called free form language?
Why isn't any of this standardized in c? Any real program has to do some of these things.
How can I call a function with an argument list built up at run time?