Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can you please explain the difference between syntax vs logical error?

0 Answers  


input any 4 digit number and find the difference of all the digits?

3 Answers   Google,


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

0 Answers  


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

0 Answers   CLG,


What is wrong with this statement? Myname = 'robin';

0 Answers  


a simple c program using 'for' loop to display the output 5 4 3 2 1

2 Answers   Google,


Is c compiled or interpreted?

0 Answers  


explain how do you use macro?

0 Answers  


What is local and global variable in c?

0 Answers  


prototype of sine function.

2 Answers   Cadence,


How can you allocate arrays or structures bigger than 64K?

0 Answers  


What does sizeof return c?

0 Answers  


Categories