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
Is .net a programming language?
Explain what is the difference between encrypting a password and applying a hashing?
What are the properties of ADO.NET?
Explain how to stop a thread?
What is stored procedure ? how we use it in .NET ?
How do you generate a strong name?
What's a windows process in .net?
Explain what is the difference between response.redirect & server.transfer?
Explain about Behavioral design pattern?
What are the different types of Classes in .NET?
what is the meaning silverligt control
What is 3 tier architecture?
Explain what is an anonymous method and how is it different from a lambda expression?
What is the concept of inheritance in .net?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?