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
Can a dll be changed to an exe?
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
What is the difference between reference type and value type?
What does jit do?
What is lambda expressions in c#?
What is the difference between response.write & response.output.write?
Please tell us what is the difference between override and overload in a method?
Explain me why do we use msmq?
Is .net front end or backend?
What are Attributes in .NET?
How will you make .NET programs work in Linux ?
What is loosely coupled solution in.net?
Please explain what is the difference between encrypting a password and applying a hashing?
What is value type and refernce type in .net?
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?