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
Answers were Sorted based on User's Feedback
Answer / dennis
11.
1 for the String[]
and 1 for each individual "string" in the string array.(so total 10)
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / 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 |
What is namespace in .net?
What are multicast delegates?
What is UDDI and how to register a web service ?
What is the use of common language runtime?
If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?
why you wouldn't want to write into it even if you could
Which is the main Difference Between .Net 2003 and .Net 2005?
What is different between webusercontrol and in webcustomcontrol?
Tell us why do we use the “using” statement?
How can you clean up objects holding resources from within the code?
What is the difference between the C#.NET and VB.NET?
What is managed code execution?