1. The final values of a, b, c, d are 2, 8, 1, 0.
2. int totalSeconds = 307;
int seconds, minutes;
minutes = totalSeconds / 60;
seconds = totalSeconds % 60;
3. The message dialogs display the strings 5555 and 5510 respectively.
In the first case, we proceed from left to right, joining strings. In the second case, the brackets are performed first, resulting in the integer 10. Then the string-joining takes over.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here