++m in c

int m = 5;
int result = ++m;

Explanation:

  • The variable m is initialized with the value 5.
  • The ++m operation is a pre-increment operation, which means the value of m is incremented by 1 before it is used in the expression.
  • The result of the pre-increment operation is assigned to the variable result.
  • After the operation, the value of m becomes 6, and the value of result is also 6.