Answers for "size_t printf"

C
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

Code answers related to "C"

Browse Popular Code Answers by Language