solution

#include<iostream>
using namespace std;

int main()
{
 char ch;
 cout<<"\nEnter any character : ";
 cin>>ch;
 cout<<"ASCII equivalent is : "<<static_cast<int>(ch);
 
 
 return 0;
}

Post a Comment

Previous Post Next Post