Computer Chess Club Archives


Search

Terms

Messages

Subject: Help ! pointer to struct

Author: rasjid chan

Date: 23:33:31 01/11/05


Excuse me as I only have a hazy understanding of C semantics.

I have struct {....} PC piece[2][16];

The following bug is from the debugger Visual C++ 4.0

&piece[0][0]	0x0054d030
&piece[0][0]+16	0x0054d370
piece	        0x0054d030
piece+16	0x00550430

Why is that pointer arithmetic don't seem to be correct -
piece+16 != &piece[0][0]+16.

Thanks
Rasjid

















This page took 0 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.