The same as sizeof s.b
The code with brackets looks strange, of course.
I got it after expanding preprocessor macros, s was #define'd with brackets
2008/11/22 Jerry <[EMAIL PROTECTED]>
> 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
>
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel