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_MINin does not consider it.
20230709
- CPL Practice: In some implementations,
free()will do nothing when the argument isNULL(normally0), so if we operate memory directly bymalloc()andfree(), something bad may be invisible for us. Thus, setting the pointer null afterfree()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)