Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / amit
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Can we change the value of static variable in c?
Explain how do you convert strings to numbers in c?
Explain what is the benefit of using const for declaring constants?
What is #include cctype?
How can I list all of the predefined identifiers?
What are the back slash character constants or escape sequence charactersavailable in c?
Explain what is the use of a semicolon (;) at the end of every program statement?
When should volatile modifier be used?
Is it possible to pass an entire structure to functions?
What is a nested formula?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Why does notstrcat(string, "!");Work?
Why c is called procedure oriented language?
What is difference between structure and union in c?
How can you access memory located at a certain address?