From owner-freebsd-questions Sun Mar 14 13:55:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from saturn.spel.com (ip226-39-143.spel.com [208.226.39.143]) by hub.freebsd.org (Postfix) with ESMTP id C4DA5150A7 for ; Sun, 14 Mar 1999 13:55:14 -0800 (PST) (envelope-from mturpin@saturn.spel.com) Received: from localhost (mturpin@localhost) by saturn.spel.com (8.9.2/8.9.2) with ESMTP id QAA06457 for ; Sun, 14 Mar 1999 16:50:32 -0500 (EST) (envelope-from mturpin@saturn.spel.com) Date: Sun, 14 Mar 1999 16:50:32 -0500 (EST) From: Mark Turpin To: questions@freebsd.org Subject: Programming Question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I feel really silly having to ask this. Why does my sizeof(mystruct) come out as 4 instead of 3 ( short + char ) ? struct { short shortvariable; char charvariable; } mystruct; sizeof(mystruct) == 4 Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message