Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Arrays
If a is an array of 5 integers then which of the following is the correct way to increase its size to 10 elements?
int[] a = new int[5]; int[] a = new int[10];
int[] a = int[5]; int[] a = int[10];
int[] a = new int[5]; a.Length = 10 ;
int[] a = new int[5]; a = new int[10];
int[] a = new int[5]; a.GetUpperBound(10);
Show Answer
Correct Answer:
int[] a = new int[5]; a = new int[10];
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment