write a c program for greatest of three numbers without
using if statment
Answer Posted / ragu
int call();
void main()
{
int a,b,c,d;
printf("enter the values");
scanf("%d%d%d",&a,&b,&c);
d=call();
}
call()
{
return(a>b?a>c?a:c:b>c?b:c);
}
| Is This Answer Correct ? | 28 Yes | 19 No |
Post New Answer View All Answers
What is the use of a static variable in c?
Which is the best website to learn c programming?
Explain how do you convert strings to numbers in c?
Why c language is called c?
Distinguish between actual and formal arguments.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Why is struct padding needed?
Wt are the Buses in C Language
What are the advantages of external class?
What is hungarian notation? Is it worthwhile?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Can main () be called recursively?
Do you have any idea about the use of "auto" keyword?
Explain about C function prototype?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.