Skip to content

Instantly share code, notes, and snippets.

@dadarek
Created June 29, 2012 21:15
Show Gist options
  • Save dadarek/3020688 to your computer and use it in GitHub Desktop.
Save dadarek/3020688 to your computer and use it in GitHub Desktop.
Funky CPP
class Something
{
public:
void PrintSomething() {
cout << "hi there" << endl;
}
};
int main()
{
((Something*) 0)->PrintSomething();
return 0;
}
@coderpr
Copy link

coderpr commented Mar 13, 2017

That the new for access function.....Without declaration any object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment