need help to answer this question

Oct 17, 2011 at 4:07am
Mark up this code block with TWO statements, to count the number of cycles executed in the event-controlled loop:
while (...)
{
...
}
The ... sequences represent unspecified code. Don't print the result -- just count.
Last edited on Oct 17, 2011 at 4:09am
Oct 17, 2011 at 3:47pm
while (waitForAnEvent())
counter++;
Oct 17, 2011 at 5:35pm
Hi ,
we can use static variable also to count the number of cycle when ever the function is called .
Topic archived. No new replies allowed.