on-internet
← Community

When I print raw character codes to terminal one after another, why is there a gap in the range from 157 to 280?

Stack Overflow ·

In the below code - there is a huge gap in the output. From 157-280 nothing is printed. I would expect, that at least the integer value is being printed. #include <stdio.h> int main(void) { for (int c = 0; c < 300; c++) { printf(">%c< (%d)\n", c, c); } return 0; } Part of the output: >< (150) >< (151) >< (153) >< (154) > < (156) >< (280) >< (281) >< (282) > (283) I am using Linux and the wezterm terminal emulator.

Comments

Sign in or sign up to comment and upvote.

No comments yet.