write a c program to find largest of three numbers using simple if only for one time.
Answer Posted / 1160
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,max;
scanf("%d %d %d",&a,&b,&c);
if (a>b && a>c)
{
printf("%d",a);
}
max=(b>c)&&(c>a)?printf("%d",b):printf("%d",c);
return max;
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain heap and queue.
What is array in c with example?
What is function pointer c?
How can I make sure that my program is the only one accessing a file?
What is pivot in c?
What is the default value of local and global variables in c?
What is the use of header files?
Explain how does free() know explain how much memory to release?
What does %d do in c?
Explain null pointer.
diff between exptected result and requirement?
Do you have any idea about the use of "auto" keyword?
What is the difference between exit() and _exit() function?
What does static variable mean in c?
Is c easier than java?