nilesh wrote:
When running my C programs sometimes Bus Error
occur can anyone explain me what is Bus Error
& when does it occur.
bus error occurs when you try to access a data type thru its
address which is not properly aligned.
eg: address of an int should be 4 byte aligned
of an 8 byte data type ( double word?) 8 byte aligned
& a data structure exceeding 8 byte size shud b 8 byte aligned.
-Ankit
--------------------------------------------------------------------------
LI is all for free speech, but this list was created for a purpose --
to help popularise Linux in India. If your messages are counterproductive
to that purpose, your privileges to submit messages can and will be revoked.