String[] a = new string[10]
for(i=0; i<10; i++)
{
a[i] = i;
}
How many heap object will be created for this array. Choose
the answer below.
Ans: 1, 10, 11, 12
Answer Posted / suresh
ANS:11
VALUES ARE STORED IN ARRAY FROM 0.HERE STRING[].
HERE TOTAL I VALUE IS 10 AND IT IS STORED IN ARRAY INCLUDING
STARTING POINT.SO 10+1=11.SO
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What does msil do?
Please explain what is reflection and what is it for?
Why do we use the “using” statement?
Explain memory-mapped files.
Tell us what is heap and what is stack?
What is .net3.5?
How to load the contents of an xml file into an xmldocument object?
Which dll is required to translate xml to sql in internet information server (iis)?
Whate are resource files?
A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?
If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?
How will you load dynamic assembly? How will create assemblies at run time?
Please explain what are an object and a class?
Conceptually, what is the difference between early-binding and late-binding?
What are the features of dot net?