Timeline for pset3 "Find" Seg fault issue?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 2, 2017 at 17:55 | comment | added | Steve Bunting | That's correct, and once you change that, you need to make sure you iterate over all values in the array. | |
Feb 2, 2017 at 16:31 | vote | accept | msmith1114 | ||
Feb 2, 2017 at 15:50 | comment | added | msmith1114 | I just realized the problem...int array_holder[max_value] needs to be max_value+1, since I need to hold 45 values if 44 is the max value. | |
Feb 2, 2017 at 14:54 | comment | added | msmith1114 | Ah I guess in the first I need to be setting it to max_value+1 I would assume. Since Max_value may be....400. it will go to array_holder[399] which won't store 400 but 399 (since array_holder[0] needs to hold 0). Correct? Any suggestions on the second part? I couldn't figure out a good way. | |
Feb 2, 2017 at 9:03 | history | answered | Steve Bunting | CC BY-SA 3.0 |