sizeof(int)
is of type size_t
, which is an unsigned integer type. So in the expression if(sizeof(int) > -1)
, -1
is converted to an unsigned integer, which is very big.
BTW, use int main
instead of the non-standard void main
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…