2Answers
Analyze the following number of execution times in the preface
Asked by: Frank James 23 views IT
void delay ()
{uINT I, j;
for (i = 0; i <120; i ++)
for (j =0; j <150; j ++);
}
Welcome Guest.
Asked by: Frank James 23 views IT
void delay ()
{uINT I, j;
for (i = 0; i <120; i ++)
for (j =0; j <150; j ++);
}
+3Votes
Simple, the outer cycle I circulate 120 times, and the inner cycle is 150 times, so the total cycle is
120*150 = 18000 (times)
+8Votes
If you are not wrong, it is 120 x 150 times