Correct Answer - Option 2 : I, II and III
A cast is a special operator that forces one data type to be converted into another. As an operator, a cast is unary and has the same precedence as any other unary operator.
Syntax
(type) expression
For Example
#include <iostream>
using namespace std;
main() {
double a = 19.07795;
float b = 8.054;
int m ;
m = (int) a;
cout << " (int)a is :" << m << endl ;
m = (int) b;
cout << " (int)b is :" << m << endl ;
return 0;
}
Output is
(int)a is :19
(int)b is :8