Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between int main and void main?

1051


How can I read in an object file and jump to locations in it?

1033


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1170


Explain 'far' and 'near' pointers in c.

1144


What are 3 types of structures?

1071


Is array name a pointer?

1035


What is the auto keyword good for?

1158


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

1080


What is the general form of a C program?

1031


List out few of the applications that make use of Multilinked Structures?

2198


what is the different bitween abap and abap-hr?

2337


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1113


Calculate 1*2*3*____*n using recursive function??

2042


Why is c called "mother" language?

1296


Write a program to print “hello world” without using semicolon?

1123