LogiQuest
Back to References
5

What will be the output of the program?

#include <iostream>
using namespace std;

int main() {
    int x = 4;
    const int &cr = x;
    x = 9;
    cout << cr << endl;
    return 0;
}
Medium

Discussion (0)

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

Log in to join the discussion.