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 |
Which server tag comes from server when we submit any data
Explain the .net framework overview?
How does the .NET framework work?
What are the features of UIP Application Block?
Differences between namespace, class, assembly?
How will you do redo and undo in textbox control?
What are the two kinds of properties.
Explain about the features and elements present in Visual studio.NET IDE?
What are three common acronyms used in .net, and what do they stand for?
What is Entity Relationship Model in .NET?
Who is using .net core?
What is .net standard?