Friday, September 28, 2018

How convert character in ascii in C++?

    
    
#include<iostream.h>
#include<stdio.h>
#include<conio.h> 
int main()
{
 char ch;
 cout<<"\nEnter any character : ";
 cin>>ch;
  cout << "ASCII Value of " << ch << " is " << int(ch);
 
 
 return 0;
}

No comments:

Post a Comment