need help to answer this question

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
while (waitForAnEvent())
counter++;
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.