Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
7 years, 10 months ago
I am stuck on figuring out what form the bytes are in when they're read? I created a buffer of type char and I get one result when I read the bytes in. Then I created a buffer of type int and I get a different result when reading over those same bytes.
I am looking for a data type to store the bytes as hexadecimal.
Jul 29, 2015 at 21:17
Unsigned char works, so does uint8_t.
Jul 29, 2015 at 21:39
1,211 7 7 silver badges 32 32 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only