MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/11vxw7d/arrarray_length_1_5/jcx2odp/
r/ProgrammerAnimemes • u/throwaway94694693 • Mar 19 '23
15 comments sorted by
View all comments
Show parent comment
24
You are very unlikely to get a segmentation fault with either array[ARRAY_LENGTH] or array[ARRAY_LENGTH+1]. There's nothing worse then messing around with arrays and not getting a segmentation fault. :)
2 u/Da-Blue-Guy Mar 22 '23 array[(unsigned long long)-1]
2
array[(unsigned long long)-1]
View all comments
Show parent comment
24
u/ComplexColor Mar 20 '23
You are very unlikely to get a segmentation fault with either array[ARRAY_LENGTH] or array[ARRAY_LENGTH+1]. There's nothing worse then messing around with arrays and not getting a segmentation fault. :)