We all know that 65 ASCII value represents 'A' and 97 represents 'a' . what is the easiest way to convert integer (should be less than 256) into character in C++. It is using static_cast.
int a =65;
char c=static_cast<char>(a);//typecasting to char(a) will also work
cout<<c;
Output will be A
int a =65;
char c=static_cast<char>(a);//typecasting to char(a) will also work
cout<<c;
Output will be A