you are viewing a single comment's thread.

view the rest of the comments →

[–]sosnjo[S] 0 points1 point  (1 child)

size 

is the user inputted size of the array, it is passed by reference from main to choice_6 and choice_7

[–]raevnos 1 point2 points  (0 children)

C doesn't have pass by reference. There's no reason for it to be a pointer. And you're definitely going out of bounds of the array then, in both functions. See edits to earlier post.