DateTime[] dt = new DateTime[10]
for(i=0; i<10; i++)
{
dt[i] = DateTime(2008, 1, i+1)
}
How many heap object will be created for the above array.
Choose the correct answer below.
Ans: 1, 10, 11, 12
Answer Posted / rattan deep
answer is 11 because i+1 will give 11 value and in C# array
is considered as dynamic structure.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of enumerable class in .net?
Explain what are an object and a class?
What are the collections you've used?
Please explain when should you use .net web forms over asp.net mvc?
Who is using .net core?
Where does the gac exist ?
What is the lapsed listener problem?
How to load the contents of an xml file into an xmldocument object?
What do you mean by web service?
Please explain the difference between constants and read-only variables?
Is .net an object oriented language? What are their components?
Which namespace does it belong to by default?
What is connected and diconnected database ?
How will you do redo and undo in textbox control?
What is a variable of implicit type and what is its scope?