1.

If m=5,n=2 what will be the output of m and n execution? (a)m-=n;

Answer»

The answer to the question is quite a SIMPLE one.

The value of 'm' after the EXECUTION of 'm-=n' will be 3 and the value of n after the same, will 2.

The working is extremely simple as well.

It is as follows:

We have m-=n;

That is m=m-n.

We have m=5 and n=2.

THEREFORE, new value of m is 5-2=3 and the new value of n is still 2.



Discussion

No Comment Found