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); } }
2503what 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 4304what 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 4338What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 3742what 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 4241Post New Google Interview Questions
What is meant by balancing?
what are artifacts generated while planing phase
Can you change the listening port from default to something else?
Where is a service contract is assigned to a piece of equipment?
What is the purpose of database management system?
What is the difference between authorization object and authorization object class?
What are ngModel and how do we represent it?
Can I delete system32 folder?
How do I get my wordpress site on google?
GIve the Plugin for Multi-language features?
What are the different modes of operations used in services for android?
What are character functions in sql?
Please tell me some products/services of Capital One.
What are the types of ioc container in spring?
can an automatic recovery be initiated by a user? : Sql server administration