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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Why DLL files are needed. & how They are Created in DOTNET?
What is dot net and its uses?
What distributed process frameworks outside .NET do you know?
What versions of .net are there?
Tell us what is json data, and what is one way that .net developers can work with json?
Dot Net is Platform Independent or Platform Dependent..?
What is jit compilers?
How Can Registry Editor in .NET?
Tell me what is serialization?
What is Code group in .Net with respect to CAS
What is RCW (Run time Callable Wrappers)?
Should I implement finalize on my class? Should I implement idisposable?