size t printf

Solutions on MaxInterview for size t printf by the best coders in the world

showing results for - "size t printf"
Tom
21 Nov 2018
1size_t x = ...;
2ssize_t y = ...;
3printf("%zu\n", x);  // prints as unsigned decimal
4printf("%zx\n", x);  // prints as hex
5printf("%zd\n", y);  // prints as signed decimal
6
Paolo
05 Oct 2019
1size_t n = 1;
2printf("%zd", n);