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 / garima kurmi
Correct answer is 1.As the heap is a pointer and stores the
type of the object not the value.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What does il do?
What is the difference between .net and laravel?
What is .net debug & trace?
How is .net able to support a lot of languages?
What are the core differences between .NET Languages ?
Is there any thread in our .net programs?
What is "microsoft intermediate language" (msil)?
How is .net able to support multiple languages?
Why inheritance is important?
What is static constructor, when it will be fired?
What is an anonymous method and how is it different from a lambda expression?
Explain how do assemblies find each other?
What is the best way to crack the certification?
How server form post-back works?
What is value type and refernce type in .net?