Computer Science, asked by chakrabartyshambhabi, 1 month ago

if the initial value of X is 3, what will be the final value of--x​

Answers

Answered by BrainlyProgrammer
34

Answer:

Initially, x=3

--x=?

Note:-

  • --x is a prefix decrement operator. So it will first decrease then store the new value.

•°• New value of x is 2

Know more:-

  • Prefix Operators :- They increase/decrease their value before moving forward. ++x,--x are prefix increment/decrement operator.
  • Postfix Operators :- They increase/decrease their value after moving forward. ++x,--x are prefix increment/decrement operator.
Similar questions