+ 1

expressions

Given the following declaration(s), what is the value of the following expressions? int x=3, y=4, z=5; z++<<x y%2==0?x:z x*y&15 x*y^y*z z==Math.sqrt(x*x+y*y)

17th Nov 2020, 3:44 PM
Yvette Wambi Nerima
Yvette Wambi Nerima - avatar
2 Respuestas
+ 3
Surround each of them with print statement and see for yourself in the code playground and come back if you did not understand something.
17th Nov 2020, 3:51 PM
Avinesh
Avinesh - avatar
+ 3
Yvette Wambi Nerima Find the explanation as comments in the code shared below. You must have a good understanding of bitwise operators and binary representation of a number to understand the answer. https://code.sololearn.com/c9RBVcPKTJdD/?ref=app
17th Nov 2020, 4:34 PM
Avinesh
Avinesh - avatar