How to calculate the run time of a code?
A
Start time – End time
B
End time – Start time
C
Start time/ End time
D
Start time * End time
Correct Answer: End time – Start time
Run-time statements use the static resources created by compile-time statements, but can also create, use, and destroy dynamic resources at run time. The run time of code can be calculated as: run time = end time – start time