LogiQuest
Back to Templates
9

What will be the output of the program?

#include <iostream>
using namespace std;
template <int N>
int times() { return N * 2; }
int main() {
    cout << times<21>() << endl;
    return 0;
}
Easy

Discussion (0)

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

Log in to join the discussion.

What will be the output of the… | LogiQuest