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); } }
1921what 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 3608what 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 3015What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 2944what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
1 2971what 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 3303Post New Google Interview Questions
why should you maintain separate names for your NIS and DNS domains?
How to use of return keywords in python?
Explain the common uses of tree database.
How do you create a fillable template in word?
What is the this keyword?
. which tag i need to use manually to bind columns in a datagrid ?
How to decide the tool that one should use for automation testing in their projects?
How to create a spreadsheet in excel 2013?
What is mrc and what is its use? : oracle accounts receivable
How Wireless Communications might affect the Development and Implementation of the Internet of Things (IoT)?
give me a example of writing a test case,take any good example which i can understand easily.
What is a value set? List its various types.
give an example whenu should initiative and took the lead.
What amount of catalyst is consumed in the reaction it catalyzes?
What is root context in spring?