Re: C Interpreter and sizeof operator



In article <438ce9a7$0$11070$e4fe514c@xxxxxxxxxxxxxx>,
Skarmander <invalid@xxxxxxxxxxxxxx> wrote:

> You can try and fudge this in cases where the application cannot possibly
> trip over the wrong size, but it's tricky to do this without violating the
> standard, and in an interpreter it's very unlikely to be of any value. Just
> pick a constant size for integers (4 bytes happens to be a very common one).

So if I write

long long i;
char array [100];

for (i = 0; i < 100; ++i) array [i] = i;

the compiler is free to use 1, 2, 3, 4 or any other number of bytes for
i, because it doesn't make any difference to the code. The compiler is
allowed to cheat, as long as you cannot detect that it cheats.
.



Relevant Pages

  • Re: Vlookup backwards
    ... Use a combination of the INDEX & MATCH functions. ... Its tricky at first ... but worth learning. ... Or you can just cheat and output the data in some hidden column and ...
    (microsoft.public.excel.misc)
  • Re: Dont get the collusion thing
    ... >Cheat 1: AJ Cheat2: JJ ... >Cheat 2 Has: JJJAA ... >What are you talking about "trip aces"?? ... Cheat 2 still leads with his full house over Player 2's trips. ...
    (rec.gambling.poker)