C++
How does a ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How does a constant object initializing if the
const
qualifier prohibits the compiler to change it on the stage of creating?
All objects are initially created as non-constants
With the help of constructor marked by
const
qualifier
When creating the compiler is allowed to modify constant objects
None of the above
Explanation
All objects are initially created as non-constant, they initializing, and then constancy "hangs" on constant objects.
const-cast
constant
const-qualifier
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
++
Quiz
Login to learn C++
or
Read more about
C++ Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment