I couldn't figure out the solution from the top of my head. What is the execution order of the "
p2(c++), p1(c)
" part? When will the variable c be incremented? What will be the calling order of the p1,p2 constructors? C++ is one magic language with lots of arbitrary rules.But, of course, I typed it in and got the solution.
No comments:
Post a Comment