cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
need help to answer this question
need help to answer this question
Oct 17, 2011 at 4:07am UTC
homan007
(4)
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 UTC
Oct 17, 2011 at 3:47pm UTC
EricDu
(113)
while (waitForAnEvent())
counter++;
Oct 17, 2011 at 5:35pm UTC
bluecoder
(763)
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.