Need a project done?

C++ Programming Developer

Search This Blog

Typecasting in C++

Typecasting in C++ is shown below by typecasting an integer to a character.

//integer to character typecasting
#include <iostream>
using namespace std;



int main(){
int number = 65;

char ascii = (char) number;

cout << ascii << endl;

return 0;
}
"Don't let anyone ever make you feel like you don't deserve what you want."