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
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What does void main return?
Difference between Shallow copy and Deep copy?
What does the c preprocessor do?
What does nil mean in c?
What is c++ used for today?
What are the types of pointers in c?
What is the use of #define preprocessor in c?
What are structures and unions? State differencves between them.
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
How can I pad a string to a known length?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What are 'near' and 'far' pointers?
Explain what is the stack?
What is scope rule of function in c?