Using the following declaration:
int[] anArray = { 34, 55, 67, 89, 99 };
What would be the result of each of the following output statements?
1. Console.WriteLine(anArray.Length);
2. Console.WriteLine(anArray[2]);
3.Console.WriteLine(anArray[anArray.Length - 2]);
4. Console.WriteLine(anArray[2+1] * anArray[0]);
5. Console.WriteLine(anArray[1] + 100);Using the following declaration:
int[] anArray = { 34, 55, 67, 89, 99 };
What would be tUsing the following declaration:
int[] anArray = { 34, 55, 67, 89, 99 };
What would be the result of each of the following output statements?
1. Console.WriteLine(anArray.Length);
2. Console.WriteLine(anArray[2]);
3.Console.WriteLine(anArray[anArray.Length - 2]);
4. Console.WriteLine(anArray[2+1] * anArray[0]);
5. Console.WriteLine(anArray[1] + 100);Using the following declaration:
int[] anArray = { 34, 55, 67, 89, 99 };
What would be the result of each of the following output statements?
1. Console.WriteLine(anArray.Length);
2. Console.WriteLine(anArray[2]);
3.Console.WriteLine(anArray[anArray.Length - 2]);
4. Console.WriteLine(anArray[2+1] * anArray[0]);
5. Console.WriteLine(anArray[1] + 100);Using the following declaration:
int[] anArray = { 34, 55, 67, 89, 99 };
What would be the result of each of the following output statements?
1. Console.WriteLine(anArray.Length);
2. Console.WriteLine(anArray[2]);
3.Console.WriteLine(anArray[anArray.Length - 2]);
4. Console.WriteLine(anArray[2+1] * anArray[0]);
5. Console.WriteLine(anArray[1] + 100);he result of each of the following output statements?
1. Console.WriteLine(anArray.Length);
2. Console.WriteLine(anArray[2]);
3.Console.WriteLine(anArray[anArray.Length - 2]);
4. Console.WriteLine(anArray[2+1] * anArray[0]);
5. Console.WriteLine(anArray[1] + 100);