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
Explain main function in c?
program for reversing a selected line word by word when multiple lines are given without using strrev
What is abstract data structure in c?
What are conditional operators in C?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Is c++ based on c?
Why is c so powerful?
What are local static variables? How can you use them?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What are the different types of control structures in programming?
Why is c faster?
Why calloc is better than malloc?
largest Of three Number using without if condition?
What are the 4 types of unions?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above