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 are the two main parts of the .net framework?
What is the difference between web application and enterprise application?
Please explain what is the difference between a class and an object?
Is it true that objects don't always get destroyed immediately when the last reference goes away?
What are the advantages of .net?
What is UDDI and how to register the web service in it?
Tell us the difference between managed and unmanaged code?
Explain how to produce an assembly?
How many types of transactions are there in com + .net ?
Is .net a language?
What is a web service in .net?
What is the advantage of .net?
Explain the difference between the while and for loop. Provide a .net syntax for both loops?
I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?
What are the types of jit?