I get a segmentation fault, I do not understand why. Checked my code seems fine... Trying to get the reverse order of a list of numbers that I put in an array.
Related question. At times I have seen "Segmentation fault", but when I attempt a stack trace using gdb, and then typing in "st" at the resulting prompt, what does the message "Nothing on stack" mean? Sure, it means nothing on stack to trace, but why would that happen? I am guessing one reason would be that the compilation or the execution failed even prior to anything being placed on stack .... is that possible?