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

What is the data segment that is followed by c?

604


What is the g value paradox?

641


What is page thrashing?

649


How can a program be made to print the line number where an error occurs?

645


What does *p++ do?

581






What is string in c language?

618


What is #error and use of it?

675


Explain what does a function declared as pascal do differently?

634


What is typedef struct in c?

579


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1113


Describe explain how arrays can be passed to a user defined function

598


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1785


Is r written in c?

722


What are the data types present in c?

623


What oops means?

577