Computer Science, asked by crhythm2, 6 months ago

int x=5 ;
int sum=7
sum=sum+(x++);

Answers

Answered by swnoswno08
1

Answer:

  • Error: In second line of code ; is missing

  • If that was a typing mistake then sum = 12.

Explanation:

x=5; sum=7;

sum=sum+(x++);

sum = 7 + (5++);

sum = 7+5 = 12;

Similar questions