[huskerlug] Re: More of a GCC problem.

  • From: "Jon Richardson" <jonpaulrichardson@xxxxxxxxxxx>
  • To: huskerlug@xxxxxxxxxxxxx
  • Date: Tue, 18 Mar 2003 16:59:12 +0000


Well... I'm still confused.  I still don't understand why the value 
iLabelNode[0] changes when it's not being modified, ok so I understand how 
the space got overwritten but more or less why?  The expected output of 4 
was given then it changes.  The array did change size with iBalance.

I think the way I'm using variable length arrays is wrong.

Would the correct way be to declare a variable length array of size "x" and 
not change x ever?

example:

x = somefoo;
int blah[x];

I assume then I should never modify x again to ensure that this works 
correctly and doesn't get overwritten?  If so, that makes sense.

Anways, thanks again.

Jon

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


----
Husker Linux Users Group mailing list
To unsubscribe, send a message to huskerlug-request@xxxxxxxxxxxxx
with a subject of UNSUBSCRIBE


Other related posts: