mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
Update c.md
A small Syntax Error
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user