Which of the following code fragments do not contain errors?
Explanation
(1) Reference should have a const modifier.
(2) It's ok, value of the i constant is copied into the variable j
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback