Last active
December 25, 2019 01:52
-
-
Save moiz-frost/2e80a71068a2ad5e21930ba6cbd33a1e to your computer and use it in GitHub Desktop.
Revisions
-
moiz-frost revised this gist
Apr 5, 2019 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,7 @@ int main() { printf("value of val = %d\n", val); printf("value of valPtr = %p\n", valPtr); printf("address of &valPtr = %p\n", &valPtr); printf("dereferenced value of valPtr = %d\n", *valPtr); return 0; } -
moiz-frost revised this gist
Apr 5, 2019 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,9 +5,10 @@ int main() { int val = 123; int* valPtr = &val; printf("address of &val = %p\n", &val); printf("value of val = %d\n", val); printf("value of valPtr = %p\n", valPtr); printf("address of &valPtr = %p\n", &valPtr); return 0; } -
moiz-frost revised this gist
Apr 5, 2019 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,12 +2,12 @@ #include <string.h> int main() { int val = 123; int* valPtr = &val; printf("value of &val = %p\n", &val); printf("value of valPtr = %p\n", valPtr); printf("value of &valPtr = %p\n", &valPtr); return 0; } -
moiz-frost created this gist
Apr 4, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #include <stdio.h> #include <string.h> int main() { int integer = 123; int* intPtr = &integer; printf("value of &integer = %p\n", &integer); printf("value of intPtr = %p\n", intPtr); printf("value of &intPtr = %p\n", &intPtr); return 0; }