Skip to content

Instantly share code, notes, and snippets.

@jitpaul
Last active April 26, 2018 20:39
Embed
What would you like to do?
TypeCasting
#include <iostream>
using namespace std;
int main(){
char a = 'c';
int *b = static_cast<int*>(&a); //Compiler Error
cout<<*b;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment