Computer Science, asked by billiegomez93, 6 months ago

int a=7,b=5,c;

c = ++a * 4 + b++;

System.out.println(c)

Answers

Answered by farhan8346
5

Answer:

37

Explanation:

Given :

a = 7 and b = 5

Now,

++a = 8

b++ = 5

Hence,

c = ++a * 4 + b++

c = 8 * 4 + 5

c = 32 + 5

c = 37

Answered by gramlachmi
0

FIRST ONE ANSWER IS WRONG THIS SUM IS CORRECT ✅

BECAUSE IN CASE OF B++ IS 5++ SO 5 NUMBER CUT AND IT CONVERTED IN 6 (i.e. 5++=5+1=6). BUT IN FIRST ANSWER THE 5TH NUMBER NOT CUTTED.

Attachments:
Similar questions