What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() {

Thành Đạt

New member
What will be the output of the following C++ code?
Code:
    #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
 

Tìm kiếm

Back
Top