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
.
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
.