Pages
Home
For beginners
Download C++ Books
Solution manual C++ How to program
Download C/C++ Compiler
Tricky Questions in C++
Ask Your Question
Cricket Scores
Know Islam
Contact us
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;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
"Don't let anyone ever make you feel like you don't deserve what you
want
."
No comments:
Post a Comment