Ok, this is what I get for

~/workspace/pset4/bmp/ $ ~cs50/pset4/peek large.bmp
offset  type   name              argv[1]
0       WORD   bfType               4d42

Do I miss something, shouldn't it be "42 4d" ?
also when I xdd large.bmp the first 2 bytes are in the order as the MSDN says: 42 4d

1 Answer 1


You're about to learn about something called endian-ness.

Hope this helps!


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .