Because sizeof
is evaluated at compile time and yields the size of the type of set
, a pointer to int
.
More Related Contents:
- Seriously What's wrong in my code
- Should C compilers immediately free "further unused" memories? [closed]
- how many bytes is this struct? – how many bytes is pointer to a struct? [closed]
- Why do I get a segmentation fault when writing to a “char *s” initialized with a string literal, but not “char s[]”?
- How do pointer-to-pointers work in C? (and when might you use them?)
- Why is the use of alloca() not considered good practice?
- Using LEA on values that aren’t addresses / pointers?
- Display an array of color in C [closed]
- The program doesn’t stop on scanf(“%c”, &ch) line, why? [duplicate]
- Printing leading 0’s in C
- How to define a typedef struct containing pointers to itself?
- How to test a static function
- Atomicity of `write(2)` to a local filesystem
- Why is “while( !feof(file) )” always wrong?
- How to get the length of an array in C? Is “sizeof” a solution? [duplicate]
- Can I get Unix’s pthread.h to compile in Windows?
- What does getting the address of an array variable mean?
- C – initialization of pointers, asterisk position [duplicate]
- multiple word string input through scanf( )
- Using int for character types when comparing with EOF
- C: How can I make it so scanf() input has one of two formats?
- Why does forking my process cause the file to be read infinitely
- What does a dot before the variable name in struct mean?
- How do I reimplement (or wrap) a syscall function on Linux?
- Memory map for a 2D array in C
- Creating C formatted strings (not printing them)
- Variable declaration vs definition
- C split a char array into different variables
- scanf not working. need to read double from console
- Can you bind() and connect() both ends of a UDP connection