I\'m taking a class on C, and running into a segmentation fault. From what I understand, seg faults are supposed to occur when you\'re accessing memory that hasn\'t been all
The program is working perfectly when compiled by gcc, & run in Linux, Cygwin may very well be your problem here.