Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what is the formate specifier in typedef of unsigned int 8 byte uint8_t in c language ?

+4 votes
asked Feb 15 by Param Sahu (160 points)

1 Answer

0 votes
answered Feb 15 by Peter Minarik (69,270 points)

u is for unsigned

hh is for one byte.

So the following line will print the unsigned char 65 (not 'A') on the screen:

printf("%hhu", 65u);

For more details, check the manual.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.