C++ PROGRAM TO FIND ASCII VALUE OF A CHARACTER.
#include <iostream>
using namespace std;
int main()
{
char ch;
cout<<"Enter the Character: ";
cin>>ch;
cout<<"Character: "<<ch;
cout<<"\t ASCII Value: "<<(int)ch;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
char ch;
cout<<"Enter the Character: ";
cin>>ch;
cout<<"Character: "<<ch;
cout<<"\t ASCII Value: "<<(int)ch;
return 0;
}