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
What is 'Common Type System' (CTS) in .NET?
What are the different types of Classes in .NET?
How do you create threading in.net?
What is the use of design pattern?
Differentiate between managed and unmanaged code?
What are the advantages of .net core?
Explain is the jit an interpreter?
What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?
How will you register com+ services?
How to implement CAS in .Net?
How to create a key pair in .net?
What is cyclomatic complexity and why is it important?
What is msil, il?
Explain about managed heap?
How to implement getcommon method in class a? Are you seeing any problem in the implementation?