Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
161 views

Segmentation Fault pset3 for Find

I'm getting a segmentation fault error and I can't figure out why. void sort(int values[], int n) { // TODO: implement a sorting algorithm for (int i = 0; i<n; i++) { if ((n!=i+...
0 votes
1 answer
785 views

Pset3 Segmentation Fault

Where is the segmentation fault occurring in this program? Thanks! /** * helpers.c * * Computer Science 50 * Problem Set 3 * * Helper functions for Problem Set 3. */ #include <cs50.h> #...