#include <iostream> using namespace std; int main(int argc, char *argv[]) { char ch; cout<<"\nEnter any character : "; cin>>ch; cout<<"ASCII equivalent is : "<<static_cast<int>(ch); return 0; }
No comments:
Post a Comment