What causes SIGFPE error?

one more question what causes SIGSEGV error out of the following :-
1.nested loops
2.nested if statements
3.nested arrays