how to solve bus error problem?

Recommended Answers

All 2 Replies

A good first step would be reading the Wikipedia article. If you still don't manage to solve the problem, post some code here.

Bus error is usually because you have tried to access some memory that does not belong to you

- You have int arr[10] and you try to access the arr[10]

Your best bet is to use printf's to try to narrow down the problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.