If you want to use ternary operator there is a trick,
#define Max(a,b) ((a>b)?a:b)
#include <stdio.h>
int main()
{
int a, b, c, m;
printf("Please enter three integers: ");
scanf("%d %d %d", &a, &b, &c);
m = Max(Max(a,b),c);
printf("The largest value of %d, %d and %d is %d\n", a, b, c, m);
return 0;
}
You can use this macro recursively.