What will be printed out as a result of the following code execution?
    int * z;
    int  const x = 5;
    z = &x;
    z++;
    std::cout << z ;
Explanation
Reference to a constant object x cannot be assigned to a non-constant pointer z

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes