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
What is this infamous null pointer, anyway?
What is the symbol indicated the c-preprocessor?
Do you know null pointer?
What is the collection of communication lines and routers called?
What is the difference between functions getch() and getche()?
Is boolean a datatype in c?
What is bin sh c?
How can I direct output to the printer?
Explain how do you search data in a data file using random access method?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Are enumerations really portable?
how do you programme Carrier Sense Multiple Access
What are the properties of union in c?
Differentiate between the = symbol and == symbol?
Why & is used in scanf in c?