Search This Blog

Thursday, 20 March 2014

finding ASCII value of any character

/*  ASCII  means American Standard Code for Information Interchange*/


#include<iostream.h>
#include<conio.h>

void main()
{
  char ch;
  cout<<"Enter any character :";
  cin>>ch;
  cout<<"Its ASCII value is : "<<(int)ch;
  getch();
}

Output


No comments:

Popular Posts