If you define integer variable and a object variable and a structure then how those will be plotted in memory ?
Answer / mr vinod kumar
Integer , structure – System.ValueType -- Allocated memory on stack , infact integer is primitive type recognized and allocated memory by compiler itself .
Infact , System.Int32 definition is as follows :
[C#]
[Serializable]
public struct Int32 : IComparable, IFormattable, IConvertible
So , it’s a struct by definition , which is the same case with various other value types .
Object – Base class , that is by default reference type , so at runtime JIT compiler allocates memory on the “Heap” Data structure .
Reference types are defined as class , derived directly or indirectly by System.ReferenceType
Is This Answer Correct ? | 0 Yes | 0 No |
What is the signature of a method?
i want the csharp questions&answeres
What are the generation of Garbage Collection in C# .NET ?
What is use of FormBoarderStyle Propertie
what is the purpose of Interfaces?
i have a string aabccefsdss.how can i get the string abcefsd. or write the fallowing string with only character occurrence of once .
Are arrays immutable c#?
What is a method signature in c#?
What are the variables in c#?
What's the difference between an integer and int?
What is a property in c#?
Does google use c#?