Shlomi Fish wrote:

On Thursday 10 March 2005 16:17, Diego Iastrubni wrote:


Shlomi Fish wrote:


mem[102] = 'c'.



SEGFAULT! the allocated memory is found at memory 100-103. Bad Thazi!


No, it's OK so far.


how come? he is refering to memory which is not allocated? lets ignore
the issue that the amount of allocated memory can be also 20 as someone
sayd before...




Because he was mallocing four bytes for x, and then putting information in x[0] to x[3].


y[0]  to t[3]....

thats x[0] and x[1],  x[2] and x[3] are not defined... or out of range


-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]




Reply via email to