What is the problem with this code?

```
int .array[5];
>>Delete the dot
for (int index = 1; index <=5; index++)
array[index] = index /2;
```


The array element array[5] does not exist, yet we are assigning a value to it.

Computer Science & Information Technology

You might also like to view...

Two structure variables of the same type with the same member values, when compared will:

a. Always compare equally. b. Never compare equally. c. Sometimes compare equally. d. Result in a compile error.

Computer Science & Information Technology

Describe some uses of common ports.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is used in Internet routing?

a. Static routes b. OSPF c. BGP d. EIGRP

Computer Science & Information Technology

You can use photo editing tools to remove red eye, an effect that can happen when the flash from a camera is used on light-eyed people.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology