Check out example codes for "what is meaning of bus error in compattive programming". It will help you in understanding the concepts better.

Code Example 1

Bus Error (also known as SIGBUS and is usually signal 10) 
 occur when a process is trying to access memory that the CPU 
 cannot physically address.In other words the memory tried to 
 access by the program is not a valid memory address.
 It caused due to alignment issues with the CPU 
 (eg. trying to read a long from an address which isn’t a multiple of 4). SIGBUS is abbrivation for “Bus Error”.

Learn ReactJs, React Native from akashmittal.com