From d07ff651d03dd1acf452c06cf7d3315ff6eed150 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 23 Jan 2024 13:53:29 -0500 Subject: [PATCH] adding null test program --- lectures/05_pointers/null.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lectures/05_pointers/null.cpp diff --git a/lectures/05_pointers/null.cpp b/lectures/05_pointers/null.cpp new file mode 100644 index 0000000..fab089f --- /dev/null +++ b/lectures/05_pointers/null.cpp @@ -0,0 +1,7 @@ +#include + +int main() +{ + int *p = NULL; + std::cout << "*p is " << *p << std::endl; +}