Answers for "printf size_t"

1

size_t printf

size_t x = ...;
ssize_t y = ...;
printf("%zu\n", x);  // prints as unsigned decimal
printf("%zx\n", x);  // prints as hex
printf("%zd\n", 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

Browse Popular Code Answers by Language