What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
1947what is the purpose of the following code, and is there any problem with the code? void fn(long* p1, long* p2) { register int x = *p1; register int y = *p2; x ^= y; y ^= x; x ^= y; *p1 = x; *p2 = y; }
1 3635what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
2 3057What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 2973what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
1 3001what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
2 3343Post New Google Interview Questions
Is it possible to change the generated code directly in Talend?
What is restful api?
What do you mean by homeostatic imbalance?
What is the cell division during the first stage of the embryonic development called?
hello sir,pls fdorward previous group-I exam papers .....
What is scm? : supply chain management
How can you differentiate between powercenter and power map?
Can you use javascript in servlets?
How to write test cases for nevigating menus? Ex. Course -Topics -Subtopics
Explain the concept of object repository & how qtp recognizes objects?
Are linux and unix the same thing?
How to find length of an array in php ?
Explain pages in wordpress.
How do I share an excel file between two computers?
Explain how binding works in mxml components in flex? : adobe flex action script