Casting is basically converting one data type to another. You do it by typing (newtype)variable;. Example:
Code:int theInt = 90; char theChar = (char)theInt; // theChar now holds the ASCII equivalent of theInt
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |