1 2 3 4 5 6 7 8 9 10 11 12 | #include <stddef.h>
#include <stdio.h>
int
main()
{
size_t s = -1; // so that we get the largest value ;-)
ptrdiff_t p = -1;
printf("s = %20zu (hex: %16zx, oct: %23zo)\n", s, s, s);
printf("p = %20td (hex: %16tx, oct: %23to)\n", p, p, p);
}
|