You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) The int arr[num]; should go after the user inputs a value for num.
1) (yep; 2 questions called "1") A segmentation fault occurs when the program attempts to access an area of memory it doesn't have access to, such as trying to get arr[5] of an array of a size less than 6.
2) An enum is a numbered list, while a struct is a set of values grouped together without numbering.