a the answer to this lies actually how they used


A: The answer to this lies actually, how they used. Along ++i(PreIncrement) the variable is incremented and new value is returned. Thus it needs one instruction to increment the variable.

In case of i++(post Increment), the old value need to be returned or used in the expression and after that the variable is incrememented after the expression is evaluated. As you require one instruction to save the old value to be utilized in the expression and other instruction to increment the variable, its slower comparatively.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: a the answer to this lies actually how they used
Reference No:- TGS0218260

Expected delivery within 24 Hours