Answers for "printf for size_t"

C
1

size_t printf

size_t x = ...;
ssize_t y = ...;
printf("%zun", x);  // prints as unsigned decimal
printf("%zxn", x);  // prints as hex
printf("%zdn", y);  // prints as signed decimal
Posted by: Guest on August-29-2021
-2

printf size_t

size_t n = 1;
printf("%zd", n);
Posted by: Guest on June-01-2021

Code answers related to "C"

Browse Popular Code Answers by Language