Advertisement
teknoraver

null pointer

Apr 20th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. class foo
  4. {
  5. public:
  6.     int a, b, c;
  7.  
  8.     void hello()
  9.     {
  10.         printf("Hello World!\n");
  11.     }
  12. };
  13.  
  14. int main(int argc, char *argv[])
  15. {
  16.     foo *f = NULL;
  17.     f->hello();
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement