Computer Chess Club Archives


Search

Terms

Messages

Subject: another simple c question

Author: Daniel Shawul

Date: 03:16:10 07/21/04



Isn't the size of a struct the sum of the sizes of its members.

but for this struct sizeof(HASH_E) gives me 16 when i expect 14

struct HASH_E
{
	HASHKEY checksum;
	char     from;
	char     to;
	short    eval;
	unsigned char    depth;
	unsigned char    entry_threat_promote_seq;
};

daniel



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.