What is the advantage of using uint8_t over unsigned char in C?
I know that on almost every system uint8_t is just a typedef for unsigned char,
so why use it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It documents your intent – you will be storing small numbers, rather than a character.
Also it looks nicer if you’re using other typedefs such as
uint16_torint32_t.