value = 0xabcd;
for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) {
foo();
if (loop & 1)
value >>= 1;
}
how many times is foo() executed?
Answer Posted / kartik
how it can execute 5 times
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can two or more operators such as and be combined in a single line of program code?
What is a stream water?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
What are terms in math?
what is the diffrenet bettwen HTTP and internet protocol
What are the application of c?
What is malloc calloc and realloc in c?
What is the deal on sprintf_s return value?
What is the difference between #include and #include 'file' ?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
what is the function of pragma directive in c?
how to find binary of number?
What is the difference between single charater constant and string constant?
Why c is called top down?
What is function in c with example?