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


Please Help Members By Posting Answers For Below Questions

What is common type system (cts)?

641


What is the single responsibility principle?

652


Is atl redundant in the .net world?

637


Explain the process of serialization in .NET?

710


How anonymous method is different from a lambda expression?

617






How to prepare parametrized (with more than one parameters) crystal report. Please tell me the code procedure, if any body can?

620


What are the new 2.0 features useful for?

738


As you know read-only variables and constants have many similarities, but what is at least one way that they differ?

608


What is the difference between asp.net and asp?

667


In code behind class, name the type of code found. Is it the server side code or client side code?

897


i m fresher,hav SQL knowledge but in my ofc. i hav to work on dotnet. so plz tell me how to learn it,? from where to stat? i hav C prog. knowledge, ASP.net

2238


What is a .net class?

713


Tell us what is a sealed class?

636


How does u handle this COM components developed in other programming languages in .NET?

1767


What is the purpose of IClonable interface in .NET?

707