Name: Linux games 2011-11-25 10:34
Linux games
#define void v0$ echo -E 'main(){printf("%d\n",sizeof(void));}'|gcc -w -xc -;./a.out;rm a.out
1
void's actual size 0 then? Because, GCC feature or not, v1 would be more valid than v0. Or simply v.
sizeof(void) is not defined.void is an incomplete type which cannot be completed:void *?void must have a size.#defined void as v0 (in his style of naming types as $type_initial$size, such as u4 for uint32_t). Is it correct saying that sizeof(void)==0 then?
struct s *p1, *p2;
p1 - p2;struct s.sizeof(void) is not defined, but some implementations give it a size of zero (which is rather logical) as an extension. I'm not sure whether this is a violation of the standard, but I believe it is not.
sizeof his void actually is 1.#define void v0 anyway?
sizeof(void) happening except due to some obscure macro expansion, neither in pre-standard code.
void *?#define and not typedef?