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
Submitted by: Administratorb) 10
Submitted by:
Submitted by:
Read Online C++ References Job Interview Questions And Answers
Top C++ References Questions
☺ | What is reference variable? |
☺ | What is output of this program? |
☺ | What is a local reference? |
☺ | What are References in C++? |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |
☺ | C++ Template Interview Questions. |