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); } }
2556what 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 4384what 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 4421What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
1 3821what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
1 3797what 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 4333Post New Google Interview Questions
What are the ways in which actionscript's code can be protected?
What does the language of fopl consist of?
Can you explain the color red to a blind person?
How would you insert a line between two columns?
How to eliminate duplicate entries in internal tables?
Hi Could any one please explain various business scenarios handled in sap.THis was the question i was asked in the interview i explained to an extent but he is not satisfied. Secondly if a person is terminated what will happen to data how long it will be maintained in the master data? Thirdly if a person is in contract is made to permanent what are the transactions carried out? If a person is terminated whether his data is deleted immediately. How long his data will be stored in the database whether it is permanently deleted or not? Pls answer for these questions asap. Thanks Priya
What is Route Parameters ?
Explain different types of validators in asp.net?
what is pop()method in JavaScript?
what is delayed insert property?
Define parameters in tableau and their working?
What is the difference between global variables and static varables?
when the time of backcharging the transformer three phases only enough or three phase with neutral is must.from these which one is the best one.
How is Mixer Brush Tool is used?
How does AI enhance customer service chatbots for improved user experience?