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); } }
2439what 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 4225what 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 4205What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 3653what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
1 3618what 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 4133Post New Google Interview Questions
Explain data types in scala?
What is oracle sid?
What do you mean by a reservation?
How to check if linked list contains loop in java?
How do you make a bridging header in swift?
Explain what is space observatory?
What is the entry in oracle apps ap,ar,gl for following transations1.one pipe purchase at rs.1002.one pipe sales at rs.150
Explain scriptlet, expression and declaration in jsp.
Explain about ADO control?
How can I get google to crawl my site?
How can I send user authentication information while making URL Connection?
What is an assignment?
why we have to use particular buffer only for dissolution instead of using cheap buffer.
can 2 tier architecture can be change as a 3 tier architecture
Which of the delimiter is ASP style?