Advertisement
Mishkafofer

Accessing pointer with no address

May 5th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. {
  4.     int *p1 = NULL, *p2;
  5.     printf("%p", p1); //points to NULL
  6.     printf("%p", p2); //point nowhere, should crash but CB ignores it.
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement