LogiQuest
Back to Functions
18

What will be the output of the program?

#include <stdio.h>
int max3(int a, int b, int c) {
    int m = a;
    if (b > m) m = b;
    if (c > m) m = c;
    return m;
}
int main(void) {
    printf("%d\n", max3(4, 11, 7));
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.