Computer Science, asked by silambamdharshika, 2 months ago

if n=5 then what is the value of a? a = n++ in computer science​

Answers

Answered by jai696
2

\huge\red{\mid{\fbox{\tt{ANSWER}}\mid}}

a = 6

\huge\blue{\mid{\fbox{\tt{Explanation}}\mid}}

n++ increments the value of n by 1

If you use the ++ operator as prefix like: ++var. The value of var is incremented by 1 then, it returns the value.

If you use the ++ operator as postfix like: var++. The original value of var is returned first then, var is incremented by 1.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions