Debug error in NetBeans
- by avd
I am running a C program in NetBeans (cygwin on windows). Generally for all C programs I have run in the past, while debugging, it stops and shows the line number of segmentation fault. But for this particular program, it does not show the line number and just stops and in the output tab, it shows prog stopped by SIGSEGV. I have tried conditional breakpoint, but it is not stopping. What could be the other conditions for error?
If u want have a look at my program, here it is.http://codepad.org/cujYTIeg
and the in.txt file from where it reads the input. http://codepad.org/vNySA6uh