How could ++m and m++ are different in terms of run time?
and could even have a long code like this???? x = ++++++++x; but cannot make like this x++++++++;
++m: This will first increase the value of 'm' by one and then use it in the expression. m++: This will first use the current value of 'm' and then increase it by one.
You can understand from that that the first cout takes as value of 'm' the original one (0) and then the program increases m. In the second cout the program first increases the value of 'm' and then sends it to the console.