What will be the o/p?
#include<stdio.h>
int max(int a,int b,int c);
void main()
{
    int a,b,c,Max;
    printf("Enter 3 numbers:");
    scanf("%d %d %d",&a,&b,&c);
    printf("The 3 numbers are %d %d %d\n",a,b,c);
    Max=max(a,b,c);
    printf("The number is %d",Max);
}
int max(int a,int b,int c)
{
    int max=a;
    (max<b) && (max=b);
    (max<c) && (max=c);
    return max;
}
Take:
a=34, b=38, c=39.

Posted on by