+ 1
Can anyone tell me the output for following code?
int a = 5; int b = 6; int c = a + b; System.out.println("c");
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.
+ 3
It won't be what you'd expect is my guess...
0
Try it out yourself in the Code Playground
0
11?