Functions in C

  • + 0 comments

    Less Code:

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