C++ References Question: Download Questions PDF
What is output of this program?
#include <iostream>
using namespace std;
int main()
{
int a = 9;
int & aref = a;
a++;
cout << "The value of a is " << aref;
return 0;
}
a) 9
b) 10
c) error
d) 11
![C++ References Interview Answer C++ References Interview Question](https://globalguideline.com/public/images/interview/33.png)
Answer:
b) 10
Download C++ References Interview Questions And Answers
PDF