If you declare two arrays sized to 10 and you attempt to assign both arrays out to the 12th element, what is the result of this action?

What will be an ideal response?

If the arrays are declared together in the program,
int N[10], M[10];
assigning into M[10] and M[11] will actually overwrite the N[0], N[1] elements. If these are first declared in the program, accessing N[10] will cause the program to crash. If there are other variable declared before it, assigning into N[10] and N[11] will corrupt this other data stored adjacent to the N array. See the Low, Mid, High program example in the text.

Computer Science & Information Technology

You might also like to view...

A ________ is a visual display of tabulated frequencies

Fill in the blank(s) with correct word

Computer Science & Information Technology

Screen shots CANNOT be inserted into Excel 2013 workbooks

Indicate whether the statement is true or false.

Computer Science & Information Technology