vadivel t


{ City } salem
< Country > india
* Profession * student
User No # 123203
Total Questions Posted # 1
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 996

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Questions / { vadivel t }
Questions Answers Category Views Company eMail

largest Of three Number using without if condition?

C 996




Answers / { vadivel t }

Question { 1805 }

What will be the output of following program
#include
main()
{
int x,y = 10;
x = y * NULL;
printf("%d",x);
}


Answer

[Error] invalid operands to binary * (have 'int' and 'void *')

Is This Answer Correct ?    0 Yes 0 No

Question { 1227 }

write a c program to find largest of three numbers using simple if only for one time.


Answer

#include
#include
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