LogiQuest
Back to References
1

What will be the output of the program?

#include <iostream>
using namespace std;

int main() {
    int a = 5;
    int &r = a;
    r = 10;
    cout << a << endl;
    return 0;
}
Easy

Discussion (0)

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

Log in to join the discussion.