When a program has an array out of bounds error, (i.e., the program accesses an illegal array value) how might the program behave when it executes?

A. The program will not compile, as C++ checks for this situation.
B. The program might run normally without error.
C. The program might crash or hang up the computer.
D. B and C are correct.

D. B and C are correct.

Computer Science & Information Technology

You might also like to view...

I have a pointer, nodePtr to a node that is a struct in a linked list. I want to access the member named data. I do this using the expression

a. nodePtr.data b. nodePtr->data c. *nodePtr.data d. (*nodePtr).data e. data is private, you can’t access data under any circumstances.

Computer Science & Information Technology

When a variable's name contains two or more words, most C++ programmers enter the name using what type of notation?

A. all capital letters B. all lowercase letters C. a space between the words D. camel case

Computer Science & Information Technology