0

What if num2 =+ num1!!!

int num1 = 12; int num2 = 8; num2 =+ num1; System.out.println(num2);

26th Jun 2019, 5:46 PM
HackerRealm.
HackerRealm. - avatar
2 Answers
+ 1
If you think about it, it's not num2 =+ num1, but num2 = +num1. It basically means that positive num1 will be assigned to num2, therefore the result is 12
26th Jun 2019, 5:51 PM
Airree
Airree - avatar
0
Thnx bro
26th Jun 2019, 5:52 PM
HackerRealm.
HackerRealm. - avatar