Functions in C

  • + 0 comments

    Using conditional operator

    int max_of_four(int a,int b,int c,int d){ return ((a>b)?a:b)>((c>d)?c:d)?((a>b)?a:b):((c>d)?c:d); }