C++ program to find ASCII value of given character.

#include<iostream.h>
#include<conio.h>
void main(){
int ascii;
char ch;
clrscr();
cout<<"Enter a character = ";
cin>>ch;
cout<<"Ascii Value Of Given Character = "<<int(ch)<<endl;
getch();
}

No comments:

Post a Comment