Q. The following program segment in C++

Code:
const int m =10;
int &n = m;
n=11;
count << m << n;
  • (A) Compile time error
  • (B) run time error
  • (C) prints 1111
  • (D) print 1011
πŸ’¬ Discuss
βœ… Correct Answer: (A) Compile time error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Prabhas Kapoor
Publisher
πŸ“ˆ
94%
Success Rate