Computer Science, asked by RoYaLStRaNgEr, 7 months ago

Evaluate the following expression for a = 9

a += a++ + ++a + --a + a-- ;​

Answers

Answered by Oreki
2

\textsf{\large \textbf{Given Expression}}

   \texttt{a += a++ + ++a + --a + a--;}

\textsf{\large \textbf{After Execution}}

   \texttt{a += 9 + 11 + 10 + 10;  \: \: (If initially, a = 9)}\\\texttt{a += 40 (or a = a + 40);}\\\texttt{a = 9 + 40;}\\\texttt{a = 49;}

Similar questions