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 do you implement multiple inheritance in .NET?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
Why delegate is used in c#?
Why do we use yield in c#?
What statements can enclose a "continue" statement?
What?s a delegate?
Can you have an array of arrays?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
Illustrate race condition?
Can you have more than one namespace in c#?
What is the adv of using System.Text.StringBuilder over System.String?
What does it meant to say “the canonical” form of XML ?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)