Question: If a is an array of 5 integers then which of the following is the correct way to increase its size to 10 elements?

Options

A : int [] a = new int [ 5 ]; int [] a = new int [ 10 ];

B : int [] a = int [ 5 ]; int [] a = int [ 10 ];

C : int [] a = new int [ 5 ]; a.Length = 10 ;

D : int [] a = new int [ 5 ]; a = new int [ 10 ];

Click to view Correct Answer

Previous || Next

Arrays - General Questions more questions

Which of the following function is more appropriate for reading....

Which of the following function is correct that finds the....

Which of the following statements are correct about the C#.NET....

Which of the following statements are correct about the C#.NET....

Which one of the following statements is correct?

How will you complete the foreach loop in the C#.NET....

Which of the following is the correct output of the....

Which of the following statements are correct about arrays used....

Which of the following statements are correct about the C#.NET....

Which of the following are the correct ways to define....

Arrays - General Questions more Online Exam Quiz

Constructors and Destructors - General Questions

Functions - General Questions

Objects and Classes - General Questions

OOPS Concepts - General Questions

References - General Questions

Complicated Declarations - General Questions

Control Instructions - General Questions