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
Are bit fields portable?
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
When should you not use a type cast?
WAP to find that given no is small or capital
find out largest elemant of diagonalmatrix
Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?
2 Answers ME, Synfusion, Wipro,
Difference between MAC vs. IP Addressing
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
What is a pointer in c plus plus?
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
what is diffrence between string and character array?