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 |
What’s different between process and application in .net?
Write an StoredProcedure to get the values of a column within a date range.
which methos do you invoke on the dataadapter control to load your generated dataset with data?
As you know read-only variables and constants have many similarities, but what is at least one way that they differ?
Dynamic Fonts
Explain the difference between garbage collections in .net 4.0 and earlier versions?
what is viewstate?
can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?
How is meant by dll in .net?
I'm having some trouble with cas. How can I troubleshoot the problem?
what is the keyword used for self reference?
How can you automatically generate interface for the remotable object in .NET with Microsoft tools?