태그

Casting means you change the representation of a variable by changing its type to a different one. In order to type-cast a simple object to another you use the traditional type casting operator. For example, to cast a floating point number of type ‘double’ to an integer of type ‘int’:

via C++ Casting: What are the C++ casting operators?.

 

Advertisements