What type of error will this code produce?

```
int n[30], i;
for(i = 0; i <= 30; ++i)
n[i] = i;

```

A. No compiler errors will be reported.
B. A compiler error is generated since there are no braces {} with the for loop.
C. A run time error may occur because we are out of bounds on the array.
D. Both A and C are correct.


D. Both A and C are correct.

Computer Science & Information Technology

You might also like to view...

A _____ attack is designed to generate a lot of activity on a network by flooding it with useless traffic-enough traffic to overwhelm the network's processing capability and essentially bring all communications to a halt.

A. rampage B. mass-mailing C. denial of service D. stampede

Computer Science & Information Technology

Computers work only with ________

A) letters and symbols B) binary numbers C) hexadecimal numbers D) decimal numbers

Computer Science & Information Technology

Are all websites that use HTTPS considered trustworthy?

What will be an ideal response?

Computer Science & Information Technology

A ____ is a term that describes objects with common attributes.

A. relationship B. case C. class D. method

Computer Science & Information Technology