what does "sizeof (s).b" mean?
Although I do not understand this statement, it could
be compiled in VC2008.
-jl
2008/11/22 Masha Rabinovich <[EMAIL PROTECTED]>
> struct S
> {
> char b[128];
> };
>
> main()
> {
> struct S s, *ps;
> printf("%d\n", sizeof s.b); // ok
> printf("%d\n", sizeof ps->b); // ok
> printf("%d\n", sizeof (s.b)); // ok
> printf("%d\n", sizeof (ps->b)); // ok
> printf("%d\n", sizeof ((s).b)); // ok
> printf("%d\n", sizeof ((ps)->b));// ok
> printf("%d\n", sizeof (s).b); // fail
> printf("%d\n", sizeof (ps)->b); // fail
> }
>
>
>
> _______________________________________________
> Tinycc-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel
>
>
--
Best Regards
-----------
Jerry Luo
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel