Wednesday, 18 September 2013

Question is only for c language(not c++).

Solve this without using compiler ->>

Level-Easy

void main()
{
int a=10,b=20,max;
max=maximum(a,b);
printf("maximum=%d",max);
getch();
}
int maximum(int a,int b)
{
return a*(a>b)+b*(b>a);
}

write output with explaination.

1 comment: