DEV Community

Phina Ren
Phina Ren

Posted on • Updated on

Everyday Special Knowledge of IT

If there are errors or questions, just respond~

20230708

  • CPL: -128 is an invalid signed char integer, and it is of a trap representation, so SCHAR_MIN in does not consider it.

20230709

  • CPL Practice: In some implementations, free() will do nothing when the argument is NULL (normally 0), so if we operate memory directly by malloc() and free(), something bad may be invisible for us. Thus, setting the pointer null after free() may not be a better behaviour for us to debug our projects.

20230801

  • Care about the buffer type! Any short string excluding new-line characters won't be shown on the screen or other devices before the specific points. For example, printf("-"); while(1) sleep(1); won't make you see the output by default.

Top comments (0)