What is the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa..

Answer Posted / vish

Small correction in above macro.
'(' was missing in second line.

#define CON(NUM) (NUM&0x000000FF)<<24|(NUM&0x0000FF00)<<8
|(NUM&0x00FF0000)>>8 |(NUM&0xFF000000)>>24

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the steps to insert data into a singly linked list.

627


What is #pragma statements?

595


How would you rename a function in C?

625


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

752


What are qualifiers?

620






What are the advantages of external class?

598


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1543


Do character constants represent numerical values?

848


What is the size of enum in c?

625


What is pass by reference in c?

618


What is use of integral promotions in c?

669


What is indirection? How many levels of pointers can you have?

665


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2232


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

693


a value that does not change during program execution a) variabe b) argument c) parameter d) none

699