|
From: | Ariset Llerena |
Subject: | [Tinycc-devel] wrong/incorrect result of sizeof |
Date: | Tue, 18 Jun 2013 03:24:59 -0400 |
User-agent: | Opera Mail/12.15 (Win32) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |