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
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What do you mean by a local block?
#include
Is c easier than java?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Why is c fast?
What are the applications of c language?
How do I get a null pointer in my programs?
Write the control statements in C language
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 static function in c?
Explain what math functions are available for integers? For floating point?
ATM machine and railway reservation class/object diagram
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?