Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: a question about speed difference that I do not understand

Author: Dieter Buerssner

Date: 11:23:13 12/05/01

Go up one level in this thread


>It is not what I have in my C  book but maybe my C book is not correct(it
>assumes also that int is 2 bytes when I know that int is 4 bytes)

It is implemetation defined. Most modern implemetation use 4 bytes.

>It is claimed there that if you define
>int my_array[10];
>then it means that you get 10 varaibles of 2 bytes and I understand that
>my_array[10] is not defined.

Your book is correct. A better formulation may be, that you get 10 int
variables. Accessing my_array[10] is definetly an error.

Regards,
Dieter



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.