]> 4ch.mooo.com Git - 16.git/commitdiff
testing and learning~
authorsparky4 <sparky4@cock.li>
Sat, 30 May 2015 12:28:24 +0000 (07:28 -0500)
committersparky4 <sparky4@cock.li>
Sat, 30 May 2015 12:28:24 +0000 (07:28 -0500)
modified:   16/fmemtest.c
modified:   16/fmemtest.exe

16/fmemtest.c
16/fmemtest.exe

index a6c354b55f88c0f64f2e416c45914875abd947b6..010470a14cfd1924844a573059744c757109f376 100644 (file)
@@ -5,10 +5,16 @@ main(int argc, char *argv[])
 {
        int x=420;
        int huge *ptr=&x;
+       int *ptr0=&x;
 
        //ptr=&x;
+       printf("ptr0=%Fp\n", ptr0);
+       printf("&ptr0=%Fp\n", &ptr0);
+       printf("*ptr0=%d\n", *ptr0);
        printf("ptr=%Fp\n", ptr);
+       printf("&ptr=%Fp\n", &ptr);
        printf("*ptr=%d\n", *ptr);
+       printf("address of *ptr=%Fp\n", *ptr);
        printf("&x=%Fp\n", &x);
        printf("x=%d\n", x);
 }
index 9b7bb77232d34930ab9665d9b9a79cd334c8fe80..58564d79b27b5a939be13b7bf0d81c196cebaee1 100644 (file)
Binary files a/16/fmemtest.exe and b/16/fmemtest.exe differ