From 70613fc5d6713763e9f934895be2f200d7ddf2a0 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 23 Jan 2024 13:50:09 -0500 Subject: [PATCH] ; rather than . --- lectures/05_pointers/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lectures/05_pointers/README.md b/lectures/05_pointers/README.md index de3b8a6..3c65cc5 100644 --- a/lectures/05_pointers/README.md +++ b/lectures/05_pointers/README.md @@ -124,8 +124,9 @@ will assume NULL and nullptr are equivalent. - Comparing a pointer to NULL is very useful. It can be used to indicate whether or not a pointer variable is pointing at a useable memory location. For example, ```cpp -if ( p != NULL ) -cout << *p << endl. +if ( p != NULL ){ + cout << *p << endl; +} ``` tests to see if p is pointing somewhere that appears to be useful before accessing and printing the value stored at that location.