Computer Science, asked by prince4732, 2 months ago

What will be the output of the following program? [3]

class Judes1

{

public static void main(String[] args)

{

int a = 3; ;

int b = 2; ;

int c = a++ + ++b;

int d = --a + --b + c--;

int sum = a + b - c - d

System.out.println("sum=" + sum);

}​

Answers

Answered by Gautame34
0

sum= -11

Explanation:

sum = 3 + 2 - 5 - 11

= - 11

Attachments:
Similar questions