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 programing language?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain what is meant by high-order and low-order bytes?
How can I avoid the abort, retry, fail messages?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What are formal parameters?
how many errors in c explain deply
What is data structure in c language?
How does placing some code lines between the comment symbol help in debugging the code?
How many types of functions are there in c?
Explain 'bus error'?
Explain a pre-processor and its advantages.
How do I copy files?
Does c have circular shift operators?
Write a code to remove duplicates in a string.