1 2 3 4 5 6 7 8 9 10 11 12
//en.cppreference.com/w/c/string/byte/isxdigit.html #include <ctype.h> #include <limits.h> #include <stdio.h> int main(void) { for (int ndx = 0; UCHAR_MAX >= ndx; ++ndx) if (isxdigit(ndx)) printf("%c", ndx); printf("\n"); }