From 6a31a273d43fce6633daf7ba8e569451c3fbc835 Mon Sep 17 00:00:00 2001 From: Fan Date: Sun, 20 Aug 2023 20:50:22 +0800 Subject: [PATCH] Update c.md A small Syntax Error --- source/_posts/c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/c.md b/source/_posts/c.md index aab2a77..f5b0064 100644 --- a/source/_posts/c.md +++ b/source/_posts/c.md @@ -499,7 +499,7 @@ int*ptr = &myAge; // pointer variable named ptr, used to store the address of my printf("%d\n", myAge); // print the value of myAge (43) -printf("%p\n", \&myAge); // output the memory address of myAge (0x7ffe5367e044) +printf("%p\n", &myAge); // output the memory address of myAge (0x7ffe5367e044) printf("%p\n", ptr); // use the pointer (0x7ffe5367e044) to output the memory address of myAge ```