A segmentation fault is when you try to access memory outside of your address space, or protected memory that you don't own. It's nearly always the result of a bad pointer or array index value, so checking those values should be your first line of attack.
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
I_m_rude commented: excellent explaintion... +2
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
zeroliken commented: probably, likely ;) +9
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
~s.o.s~ commented: Good job! :) +0
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
LastMitch commented: Thanks for answering my question! +0
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
teachMyself commented: So when you say it is a no-op, do you want me to still use it here onwards or I shouldnt.? +0
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
I_m_rude commented: full of confidence!! awesome +2