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 / sbay
Shouldn't it be || though?
for (loop = 1; (value >> 1) & 1 || loop & 1; loop++)
????
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between int main and void main?
How can I read in an object file and jump to locations in it?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Explain 'far' and 'near' pointers in c.
What are 3 types of structures?
Is array name a pointer?
What is the auto keyword good for?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is the general form of a C program?
List out few of the applications that make use of Multilinked Structures?
what is the different bitween abap and abap-hr?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Calculate 1*2*3*____*n using recursive function??
Why is c called "mother" language?
Write a program to print “hello world” without using semicolon?