Friday, 9 May 2014

Write a program which accepts a character and display its ASCII value.

Leave a Comment
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
   
    char ch;
    cout<<"Please Enter a character and check its ASCII Value ";
    cin>>ch;
    cout<<"ASCII Value of "<<ch<<" is = "<<(int)ch;
getch();
}
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: