Is 'mystructure.member' simply the negative integer minus three i.e. -3Code:#define MY_SYMBOLIC_CONSTANT 4 mystructure.member = (Int16)-(MY_SYMBOLIC_CONSTANT-1)
Note: 'Int16' is a typedef of 'signed int'
Is 'mystructure.member' simply the negative integer minus three i.e. -3Code:#define MY_SYMBOLIC_CONSTANT 4 mystructure.member = (Int16)-(MY_SYMBOLIC_CONSTANT-1)
Note: 'Int16' is a typedef of 'signed int'
Last edited by cblix; 11-08-2005 at 11:20 AM.
Disk space: the final frontier
Why don't you test it yourself?See how hard that was? Or wait, here's an even harder method!Code:printf("%d\n", -(4-1) );Code:printf("%d\n", mystructure.member );
Quzah.
Hope is the first step on the road to disappointment.
It's part of a huge project, just wanted to be really sure. Anyway, I can confirm the above code is -3
Disk space: the final frontier
> It's part of a huge project
If you can't figure this one line out yourself, the huge project will be beyond you.
Try eating a mouse before you try eating an elephant.