Or just debugging in general, how do you like to go about finding bugs in code. Specifically for C/C++, but all languages in general. I\'ve been trying to find the cause of
If you're in a fancy IDE try to familiarize yourself with breakpoints, you can use them to see how far you get into your code before the segfault happens. If you don't have that option, the simplest way is to comment out parts of your code one at a time until you find what is breaking.
I have found the commenting out method to be pretty efficient for finding segfaults in small homework sized C problems.