Check out example codes for "what is sigsegv error in c++". It will help you in understanding the concepts better.
Code Example 1
A SIGSEGV is an error(signal) caused by an invalid memory reference or a segmentation fault. You are probably trying to access an array element out of bounds or trying to use too much memory.
Learn ReactJs, React Native from akashmittal.com