J
jimjim
Hello all,
Is a char promoted to an integer in C++ in order to make lets say an
addition?
STD C: 5.1.2.3/10:
In executing the fragment
char c1, c2;
/* ... */
c1 = c1 + c2;
the ''integer promotions'' require that the abstract machine promote the
value of each variable to int size and then add the two ints and truncate
the sum.
TIA
Is a char promoted to an integer in C++ in order to make lets say an
addition?
STD C: 5.1.2.3/10:
In executing the fragment
char c1, c2;
/* ... */
c1 = c1 + c2;
the ''integer promotions'' require that the abstract machine promote the
value of each variable to int size and then add the two ints and truncate
the sum.
TIA