Your technology certification is waiting. Enroll in Cloud Class ®
unsigned int dw = 0xFFEEDDCC;
unsigned char byte0 = dw & 0xFF;
unsigned char byte1 = (dw >> 8) & 0xFF;
unsigned char byte2 = (dw >> 16) & 0xFF;
unsigned char byte3 = (dw >> 24) & 0xFF;
Open in new window
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course will introduce you to C++ 11 and teach you about syntax fundamentals.