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:
Post a Comment