读《C++ Primer》之返回值与缓冲区

在 Unix 系统中,通过echo $?,获取 main 函数的返回值。习题1.2,在 main 函数中,返回-1。通过上述方法查看,发现结果是255。这是为什么?
从 Wikipedia 的 Exti Status词条,可以看到如下说明:
SUS specifies that the low-order 8 bits of the status value contain the exit status;[4] this can be retrieved using the WEXITSTATUS macro in wait.h.[5] As such, on POSIX-compatible exit statuses are restricted to values 0-255, the range of an unsigned 8-bit integer.

