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 / 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 |
Post New Answer View All Answers
Explain Different kinds of methods?
Tell us the differences between an interface and an abstract class in .net?
Explain what inheritance is, and why it's important?
How boxing and unboxing occures in memory?
which method do you use to redirect the user to another page without performing a round trip to the client? How?
How do you generate a strong name?
What is equivalent for regsvr32 exe in .net ?
Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?
What is COM Interoperability in .NET
What is machine.config in .net?
When should I use .net core?
When we use windows api in .net is it managed or unmanaged code?
What is the procedure to add assemly to gac to make it shared one?
What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?
State the differences between the dispose() and finalize().