C++ examples for Data Type:Cast
Casting operators
int main() {/* www . j a v a 2 s. c om*/ int b = 200; unsigned long a = (unsigned long int)b; }
Function Call Cast
int main() {/*from w w w . j av a 2 s . c o m*/ float a = float(200); // This is equivalent to: float b = (float)200; }