I have an array
int[] a = {11, 3, 5, 9, 4};Above you seen an array I want to know that where is the Reference of a is created in the memory.
Also tell me where array elements are created in the memory.
int[] a = {11, 3, 5, 9, 4};Above you seen an array I want to know that where is the Reference of a is created in the memory.
Also tell me where array elements are created in the memory.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 27, 2011, 5:45 AM
Sam HobbsPosted Nov 27, 2011, 2:30 AM
There are very many things for developers to learn. There are many things that we usually do not need to understand. For C# it is important to learn that structs are value types and classes are reference types. The exact details of that is something we usuallu do not need to know.
Jean PaulPosted Nov 27, 2011, 12:45 AM
values should be in heap memory.