write a c++ program to convert a data type implicity
Answers
Answered by
1
Answer:
dynamic cast, static cast, const cast, reinterpret cast.
Explanation:
#include <iostream>
using namespace std;
int main()
{
int x = 10;
char y = 'a';
x = x + y;
float z = x + 1.0;
cout << "x = " << x << endl
<< "y = " << y << endl
<< "z = " << z << endl;
return 0;
}
Similar questions