Computer Science, asked by dk04897, 3 months ago

give the output of if a=5 ,b=2,c=1 then find d=c++ – b+ ++a+c​

Answers

Answered by Oreki
0

\textsf{\large \textbf{Given Snippet}}

    \texttt{d = c++ - b + ++a + c;}\\\texttt{\hspace{7em} (where initially, a = 5, b = 2 and c = 1)}

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

   \texttt{d = 1 - 2 + 6 + 2; (as a = 5, b = 2 and c = 1)}\\\texttt{ \: -> -1 + 8;}\\\text{\:\:\:\:\:}\therefore \texttt{ d = 7}

Similar questions