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 |
How to load a user control dynamically in runtime?
What is an EXE?
how can i create a table from front end to back end in wabe page?
Difference between assembly manifest & metadata
Explain me difference between public and static modifiers?
What is Serialiazation?
What is il and c#?
What is the single responsibility principle?
How to create properties and methods using controls?
Explain .net framework overview?
Difference b/w dataset.clone and dataset.copy ?
Explain the difference between the stack and the heap?