|
From: | James Lyon |
Subject: | Re: [Tinycc-devel] wrong/incorrect result of sizeof |
Date: | Tue, 18 Jun 2013 10:46:56 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
On 18/06/13 08:24, Ariset Llerena wrote:
the following code #include <stdint.h> #include <stdio.h> struct foobar{ uint16_t foo; // 4 bytes uint64_t bar; // 8 bytes }; int main(){ printf("%d\n", sizeof(struct foobar)); return 0; }prints 16, gcc 4.7 prints 12 that is the correct result. Posted in http://ideone.com/grqlpU_______________________________________________ Tinycc-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |