Question: Hey, I have a concern. When I input int first _ arr [ n ] the code throws an error stating, expression must have a

Hey, I have a concern. When I input int first_arr[n] the code throws an error stating, "expression must have a constant value, " same with int second_arr[m]. I changed n and m to integer values such as 1 & 2 which declared the program had no issues. However, when I try the local windows debbugger it say, " Run-time check failure - stack around the variable first_arr was corrupted." What should I do? would really appriciate the help!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!