What is the value of the 3/5*5 expression in C ++?
Explanation
Since only integers are used in the given expression, * and / operations have the same priority. Expression is executed from left to right, so we will have:
3/5 == 0
0*5 == 0

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback