"/* frank */" <__*******@despammed.com> wrote in message
news:2k************@uni-berlin.de...
Explicit conversion is made by mean of a cast
i.e.
float a;
int b;
...
I'll assume that 'a' and 'b' have been initialized
with or assigned values.
b = (int) a;
But the implicit conversion? What is?
Without a cast.
================================================== ===========
ISO/IEC 9899:1999 (E)
6.3 Conversions
1 Several operators convert operand values from one type to
another automatically. This subclause specifies the result
required from such an implicit conversion, as well as those
that result from a cast operation (an explicit conversion).
The list in 6.3.1.8 summarizes the conversions performed by
most ordinary operators; it is supplemented as required by
the discussion of each operator in 6.5.
2 Conversion of an operand value to a compatible type causes
no change to the value or the representation.
================================================== ===========
/* implicit conversions (using your definitions above): */
b = a;
a = b;
-Mike