Tuesday, March 16, 2010

Simple Data Types

Simple types include integral (int), floating point (float), Boolean(bool), and character (char). These types are called “simple” to distinguish them from user – defined types such as structs and enums. All simple types are, of course, value types.
There is no implicit conversion form the type char to any integral type as in C++. In other words, false does not equal zero and true is not a non – zero value.

No comments:

Post a Comment