/* * Prints part of the collating sequence * * !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ */ #include #define START_CHAR ' ' #define END_CHAR 'Z' int main(void) { int char_code, char_num = 0; for (char_code = (int)START_CHAR; char_code <= (int)END_CHAR; ++char_code){ printf("%d %c\n", char_code,(char)char_code); ++char_num; } printf("\nThe number of the collating sequence = %d\n",char_num); return (0); }