What will be the output of the following code:
int value = 5;
cout << value += 3;
Explanation
Since left shift operator has a higher priority than the addition assignment operator - a compilation error will occur.

Follow CodeGalaxy

Mobile Beta

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