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
35
Answer:
Explanation:
You can see the way I have solved it
Attachments:
Answered by
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
Hindi,
5 months ago
Science,
5 months ago
Math,
5 months ago
Political Science,
9 months ago
Computer Science,
9 months ago
CBSE BOARD XII,
11 months ago
Physics,
11 months ago