tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] minor tcc bug


From: Jerry
Subject: Re: [Tinycc-devel] minor tcc bug
Date: Sat, 22 Nov 2008 20:32:53 +0800

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 <address@hidden>
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel




--
Best Regards
-----------
Jerry Luo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]