Answer Posted / sibnath halder
Assuming that you want to use 8 bits of whatever bytes you
have, you could use
char swapbyte(unsigned char c)
{ unsigned char result=0;
for(int i=0;i<8;++i)
{ result=result<<1;
result|=(c&1);
c=c>>1;
}
return result;
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is this pointer in c plus plus?
Why we use void main in c?
Write a program to print fibonacci series using recursion?
write a program to print data of 5 five students with structures?
Is main is user defined function?
How can you restore a redirected standard stream?
Do you know the difference between malloc() and calloc() function?
What is static function in c?
What does %c do in c?
Explain argument and its types.
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Write the Program to reverse a string using pointers.
What is a program flowchart?