Computer Science, asked by prathikshapalai81, 27 days ago

int main()
{
int x=5;
int y=(--x) +(--x) + (x=10);
return 0
}​

Answers

Answered by Oreki
0

\textsf{Question}

   \textsf{Find the value of {\tt y} :}\\\texttt{\hspace{.5em} int x = 5;}\\\texttt{\hspace{.5em} int y = (--x) + (--x) + (x = 10);}

\textsf{Answer}

   \texttt{y = (--x) + (--x) + (x = 10)}\\\texttt{y = 4 + 3 + 10}\\\\\boxed{\texttt{y = 17}}

Similar questions