Saturday, November 27, 2010

Implicit Conversions

Converting a pointer to bool in an if statement is an example of implicit conversion.

It is an implicit conversion from pointer to bool. An integral promotion is when bool, char, short, enumerator or bit field is contverted to int. There is also integral conversion, where a signed int is converted to an unsigned int or vice versa.

Reference: http://www.glenmccl.com/glos.htm

No comments:

Post a Comment