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);
}
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is non linear data structure in c?

0 Answers  


Difference between exit() and _exit() function?

0 Answers  


What are c preprocessors?

0 Answers  


Why c language is called c?

0 Answers  


How are structure passing and returning implemented?

0 Answers  






Should a function contain a return statement if it does not return a value?

0 Answers  


How can this be legal c?

0 Answers  


What are the advantages of using macro in c language?

0 Answers  


In C programming, what command or code can be used to determine if a number of odd or even?

0 Answers  


What is const keyword in c?

0 Answers  


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...

0 Answers  


What is pass by value in c?

0 Answers  


Categories