Advertisement
BigETI

.

Jan 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. int main()
  2. {
  3.     class ok
  4.     {
  5.         public:
  6.             int num;
  7.             void yolo(int _num)
  8.             {
  9.                 num = _num;
  10.             }
  11.     };
  12.     ((ok *)0x0)->yolo(1337); // Crashes, obv
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement