Computer Science, asked by Gayatri0419, 9 months ago

What will be the output for the following program segment?
int a=0,b=10,c=40;
a = -- b +c ++ +b;
System.out.println(" a = " + a);​

Answers

Answered by pushpatamta
35

Answer:

Explanation:

You can see the way I have solved it

Attachments:
Answered by dev9779
7

THIS PHOTOS HELP YOU TO UNDERSTAND THE CONCEPT BETTER

Answer:

59

Explanation:

--b = 10-1 = 9

c++ = 40

+b = 10

so

a = --b +c ++ + b;

or a= 9-40-10

IF YOU LIKE THE PLS SUBSCRIBE DAM ORIGINAL AT YOUTUBE

Attachments:
Similar questions