Monday, September 5, 2016

C++ PROGRAM TO FIND ASCII VALUE OF A CHARACTER

Tags

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;
}