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 |
how can i display crystal report in button_click? am working with VS2005..........plz help me
What is datareader c#?
what is the lifespan of the items stored in viewstate ?
What is different between Implicit conversion and Explicit conversion in C#?
What is the main usage of keyword “virtual†? How does it work for a method or property?
Explain synchronous and asynchronous operations?
explain the nature of the assembly work?
How would you describe encapsulation in c#?
Define c# and list the features.
State two different types of access modifiers.
How do you declare an interface in c#?
Write one code example for compile time binding and one for run time binding? What is early/late binding?