LogiQuest
Back to Functions
4

What will be the output of the program?

#include <iostream>
using namespace std;

int main() {
    auto add = [](int a, int b) { return a * b; };
    cout << add(3, 4) << endl;
    return 0;
}
Medium

Discussion (0)

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

Log in to join the discussion.