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


Please Help Members By Posting Answers For Below Questions

What is c programing language?

612


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

623


Explain what is meant by high-order and low-order bytes?

633


How can I avoid the abort, retry, fail messages?

657


How would you use the functions fseek(), freed(), fwrite() and ftell()?

701






What are formal parameters?

656


how many errors in c explain deply

1629


What is data structure in c language?

602


How does placing some code lines between the comment symbol help in debugging the code?

544


How many types of functions are there in c?

581


Explain 'bus error'?

557


Explain a pre-processor and its advantages.

630


How do I copy files?

621


Does c have circular shift operators?

729


Write a code to remove duplicates in a string.

625