

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following C++ programint a (int m){ return ++m; }int b(int&m){ return ++m;}intc(char &m){ return ++m; }void: main () {int p = 0, q = 0, r = 0;p + = a(b(p));qt = b(a(q));r+ = a(c(r));cout<< p <<< I;}Assuming the required header files are already included, the above program |
A. | results in compilation error |
B. | print 123 |
C. | print 111 |
D. | print 322 |
Answer» B. print 123 | |