Home » C++ Programming » References

Which of the following statement is correct about the program given below? #include struct Tab { short n; }; int main() { Tab b; Tab& rb = b; b.n = 5; cout << b.n << " " << rb.n << " "; rb.n = 8; cout << b.n << " " << rb.n; return 0; }

Correct Answer: The program will print the output 5 5 8 8.

← Previous Question Next Question→

More Questions from References

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion