Computer Science, asked by JebinJoseph2007, 3 months ago

What will be the output for the following expression?int x=5;int x=(y==12)?10:15

Spams will be blocked permanently
crct answer will be rewarded
only crct answer
its computer
thnkq​

Answers

Answered by Oreki
5

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

   \texttt{int x = 5, y = 13;}\\ \texttt{x = (y == 12) ? 10 : 15;}

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

    \texttt{x = 15, } \text{as the value of \textit{y} is not equal to 12.}

Similar questions