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 |
Explain assemblies in .net?
What is the purpose of IClonable interface in .NET?
0 Answers Sans Pareil IT Services,
What property do you have to set to tell the grid which page to go to when using the Pager object?
How to use datagrid value in select statements where condition ,if cell is hyperlink bounded column?
Is .net core installed?
How Can Registry Editor in .NET?
what are the Goals of the UIP Application Block?
If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..
Explain how to manage pagination in a page using .net?
What are the fundamental objects in ADO.NET?
What is file extension of Webservices in .Net?
How to create properties and methods using controls?