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); } }
1960what 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 3653what 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 3100What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 2992what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
1 3020what 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 3366Post New Google Interview Questions
How to check the meatadata of a table?
What are the different security settings available in iis?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
WCF:What is it the Net.TCP Port Sharing? How can we use it?
What is the item category group? Where do you maintain it?
Explain the biggest disadvantage of using a vsam dataset?
How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen
What are the properties of xmlhttprequest?
What are cookies in angular 2?
Why many companies are switching their current business language to php?
Why is hashmap not thread safe?
How to restrict a member of a class from inheriting by its sub classes?
what is ment by master in tally?
how to clear the search history?
How to use arguments in a script?