+ 1

Can anyone tell me the output for following code?

int a = 5; int b = 6; int c = a + b; System.out.println("c");

26th Jul 2018, 6:17 PM
Mohammed Noushir
Mohammed Noushir - avatar
4 Answers
+ 3
Code: public class Program { public static void main(String[] args) { int a = 5; int b = 6; int c = a + b; System.out.println("c"); } } Output: c Explanation: Here c is wrapped by ""(double quotation). So it's will be print only character c.
26th Jul 2018, 8:17 PM
Sneher Ador
Sneher Ador - avatar
+ 3
It won't be what you'd expect is my guess...
26th Jul 2018, 6:32 PM
John Wells
John Wells - avatar
0
Try it out yourself in the Code Playground
26th Jul 2018, 6:22 PM
TurtleShell
TurtleShell - avatar
0
11?
26th Jul 2018, 7:48 PM
Dont Worry About It
Dont Worry About It - avatar