Given the following code snippet;
int salaries[];
int index = 0;
salaries = new int[4];
while (index < 4)
{
salaries[index] = 10000;
index++;
}
What is the value of salaries [3]?
Options
- 40000
- 50000
- 15000
- 10000
CORRECT ANSWER : 10000
Write your comments