Type Casting

Explicitly converts data types.

 

Syntax:  (target_data_type)identifier ;

 

Compile & run:

42 / 17 WITHOUT type casting: 2
42 / 17 WITH type casting: 2.47059

Leave a Reply