On 5/18/21 4:35 PM, Peng Yu wrote: > So, to write a portable C program, no values other than NULL should be > used as an invalid memory address? I guess it depends on your definition of invalid. NULL may be a special address used as a sentinel, but that doesn't mean every system will give you a SEGV if you happen to access NULL. Some will happily let you do it. Peter