Find char from ASCII value in C++ by R4R Team


program:

#include< iostream>
using namespace std;
int main()
{
int ascii;
cout<<"Enter any ASCII numbern";
cin>>ascii;
cout<<"Character of this ASCII value is: "<< char(ascii);
return 0;
}


output-

Enter any ASCII number
65
Character of this ASCII value is: A

Enter any ASCII number
45
Character of this ASCII value is: -




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!