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); } }
2506what 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 4305what 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 4339What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 3745what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
1 3722what 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 4242Post New Google Interview Questions
How come the systems know to differentiate between network id and the host id?
What is a web container and what is its responsibility?
How to enable and disable logs ?
What are blood enzymes?
What are the functions used to encrypt and decrypt the data present in mysql?
what is the difference b/w sigmentation and high valume segtmentation?
Explain what is the difference between native sql and cognos sql?
How to compile with debugging symbols?
What is pre-closing? : fi- general ledger master data
What functions can a view be used to performed?
What is emulator?
Explain the difference between logfile & log space?
Please consider the html code snippet below. what is missing for a tooltip to show properly?
What are topping and superposed turbines?
When do views become available in the interface controller ?