You are on page 1of 1

#include <iostream>

using namespace std;


int main(){
char character;
cout<<"type casting"<<endl;
cout << "enter character "<<endl;
cin >> character ;
cout << "ascii value is " <<(int)character<<endl;
return 0;
}

You might also like