#include<iostream.h>
#include<conio.h>
void main()
{
                char ch='A',ch1,ch2;
                int i=78,i1;
                float f=66.8,f1;
                clrscr();
                i1=ch;    //Implicit Type Casting
                ch1=i;    //Implicit Type Casting
                f1=i;       //Implicit Type Casting
                ch2=f;   //Implicit Type Casting
                cout<<"The Value of I1 = "<<i1<<endl;
                cout<<"The Value of CH1 = "<<ch1<<endl;
                cout<<"The Value of F1 = "<<f1<<endl;
                cout<<"The Value of CH2 = "<<ch2<<endl;
                getch();
}

11

Advertisements