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
Can you please explain the difference between syntax vs logical error?
input any 4 digit number and find the difference of all the digits?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is wrong with this statement? Myname = 'robin';
a simple c program using 'for' loop to display the output 5 4 3 2 1
Is c compiled or interpreted?
explain how do you use macro?
What is local and global variable in c?
prototype of sine function.
How can you allocate arrays or structures bigger than 64K?
What does sizeof return c?