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
Does c have an equivalent to pascals with statement?
Why is structure important for a child?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Explain what happens if you free a pointer twice?
Which built-in library function can be used to match a patter from the string?
How to write a C program to determine the smallest among three nos using conditional operator?
Why is c called a mid-level programming language?
How do you list a file’s date and time?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
c program to manipulate x=1!+2!+3!+...+n! using recursion
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
What is the newline escape sequence?