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

Is a house a mass structure?

635


What is the purpose of the preprocessor directive error?

673


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1187


Explain bit masking in c?

627


What is the difference between exit() and _exit() function?

594






Explain how do you print an address?

652


Explain what will the preprocessor do for a program?

591


What is the data segment that is followed by c?

600


What is the meaning of typedef struct in c?

580


Where are the auto variables stored?

618


Why do we use int main?

598


Why we use int main and void main?

533


What are the 4 data types?

590


What is the difference between memcpy and memmove?

593


How do I convert a string to all upper or lower case?

621