Created
October 25, 2018 15:18
-
-
Save Richard-W/8ebe5b8fe5dd2a50122dfb135809669d to your computer and use it in GitHub Desktop.
This file contains 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 characters
#include <stdio.h> | |
struct foo { | |
char bytes[1024]; | |
}; | |
int main() { | |
struct foo* ptr; | |
printf("sizeof ptr = %lu\n", sizeof ptr); // 8 | |
printf("sizeof *ptr = %lu\n", sizeof *ptr); // 1024 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment