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 is the root class in .net?
What is the intermediate language between asp and asp.net1.0?
Explain about managed heap?
Tell us the difference between managed and unmanaged code?
What is implement a generic action in webapi?
What is the difference between asp.net and asp?
What is the advantage of packaging over xcopy in .net?
Please explain when should you use .net web forms over asp.net mvc?
What is connection pooling and how do you make your application use it?
Explain me how does linq work?
What is Entity Relationship Model in .NET?
what will do to avoid prior case?
Do you know what is .net standard?
Dynamic Fonts
What are the deferred execution and the immediate execution in linq?