J
Jordan Abel
Say int is a 16-bit twos-complement type.
Is the expression (-32768) actually negative? Or is it the unsigned
int literal 32768 with the unary minus operator applied to it, resulting
in the value of the expression being an unsigned int 32768, which can
then trap when being assigned to a signed int type [It appears to me
that the minus sign is not actually part of the literal, since it's not
part of a number token]
Is the expression (-32768) actually negative? Or is it the unsigned
int literal 32768 with the unary minus operator applied to it, resulting
in the value of the expression being an unsigned int 32768, which can
then trap when being assigned to a signed int type [It appears to me
that the minus sign is not actually part of the literal, since it's not
part of a number token]