Consider the following 

float x = 25.56; 

cout<<(int)x; 

Here the data type of the variable is converted. What type of conversion is this? 

(a) type promotion 

(b) type casting 

(c) implicit conversion 

(d) None of these

4 views

1 Answers

(b) type casting (explicit conversion);

4 views