AnsweredAssumed Answered

hi,  i have encountered something really strange, though...

Question asked by Tianhao Zhang on Oct 20, 2008
Latest reply on Oct 20, 2008 by bigmac
hi,

i have encountered something really strange, though it may be the result of my limited experience with C.

when I initialized an array of int by saing

int array[]={0, 20, 40, 60 , 80, 100};

inside the Debugger, every value of array was set to -1.

also, if i initalize the array by saying

unsigned int array[]={the same as above};

the the debugger says that all the elements are equal to 65535.

Can someone please tell me what might be the possible causes for these symptoms?

thanks very much

Outcomes