LogiQuest
Back to Functions
9

What will be the output of the program?

#include <iostream>
using namespace std;
int f(int a, int b = 10, int c = 100) { return a + b + c; }
int main() {
    cout << f(1) << " " << f(1, 2) << endl;
    return 0;
}
Easy

Discussion (0)

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

Log in to join the discussion.