Multiple choice

Which of the following statement is true regarding the code fragment given below? #include<time.h> #include<stdio.h> void main() { int a,b,c; for(a=0;a<=3;a++) { delay(5000); printf(I); delay(3000); printf(am); delay(2000); printf(the best); } getch(); }

  1. Total time of execution will be 10 milli seconds.

  2. The total time of execution will be 10 seconds.

  3. Total time of execution will be 40 seconds.

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This option is correct because the execution time of one loop is 10 seconds and since the loop runs 4 times, hence the total time of program execution will be 40 seconds.