I don't know which IDE you are using, but if you put a breakpoint at the start of main and step through line by line you can find out which line causes the segmentation fault.
Try clicking in the margin somewhere and expect a little dot to appear. Then to debug, there should be a debug menu option on one of the menus. Then you should use the 'Step Through' etc commands on the same menu (or the toolbar) to go through the code line by line. I am not familiar with Dev C++ so I can't be any more specific, sorry.
If you don't know how to debug though, it's well worth learning. If you google debugging plus your IDE name you might find some more detailed explanation.
I've recently read quite a lot of stuff about Dev C++ being old and unsupported. I don't really know the situation but I imagine some people might advise you to change to a different IDE.
Codeblocks and Visual C++ Express are good choices in my opinion.
When you get a segmentation fault, use Debug/Step Into.
It will show you the line where the segmentation fault occurred and allows you to examine all values of variables at the time of the crash.