home *** CD-ROM | disk | FTP | other *** search
- A type can be converted implicitly or explicitly. An operator
- that converts its operands from one type to another is performing
- an implicit, or automatic, conversion. You can also use a cast
- expression to explicitly convert a type. Here, the keyword float
- enclosed in parentheses casts the type of "y" from int to float.
-