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 does il do?
How do I use the thread pool?
Explain the use of activex control in .net?
I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.
Different levels of priority provided by .net.
What is difference between .net and .net core?
Explain re-clarification of object based in .net?
What is different between webusercontrol and in webcustomcontrol?
Explain what is the difference between response.redirect & server.transfer?
Tell us why do we use the “using” statement?
Explain what is the difference between odbc and ado?
Explain the purpose of Remoting in .NET?
What are the security policy levels in .Net
What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?
Explain the difference between the while and for loop.