Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char *argv[])
- {
- int i;
- printf("size: %lu\n", sizeof(*(1 ? (void*)(i * 0ul) : (int*)1)));
- printf("size: %lu\n", sizeof(*(1 ? (void*)(5 * 0ul) : (int*)1)));
- }
- /*
- $ gcc -Wall const.c && ./a.out
- size: 1
- size: 4
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement