Computer Science, asked by cutypal2018gmailcom, 11 months ago

What will be the output of the following program? class Operators1 { public static void main(String[] args) { int a = 34; int b = 21; int c = a++ + ++b; int d = --a + --b + c--; int e = a + +b + +c + d--; int f = -a + b-- + -c - d++; int sum = a + b + c + d + e + f; System.out.println("sum = " + sum); } } ​

Answers

Answered by destinyessien1211
3

Explanation:

35 + 21 =56

1+2+3-4=2

5=1+2+3+4=15

6=-1+3-4=8

1+2+3+4+5+6=21

Answered by shilpa85475
0

263

Explanation:

We need to add operators1 as public.

Operators are unique symbols that carry out precise operations on one, two, or 3 operands, after which go back a result.

As we discover the operators of the programming language, it could be useful with a purpose to realize in advance of time which operators have the best precedence.

In laptop programs, one of the maximum acquainted units of operators, the Boolean operators, is used to paintings with true/fake values.

Similar questions