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 tochararray in c#?
Explain what are three test cases you should go through in unit testing?
6. If we assign a value in textbox on Page_UnLoad event, will it display?
What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NET Framework.
Why do we use Design Pattern in C#?
What is a nullreferenceexception and how do I fix it?
Explain about throw keyword?
10 Answers Emphasis, HCL, Satyam,
Difference between debug.write and trace.write?
Can an exception be thrown from a catch block?
what is collections in .net? why we use?
What?s the difference between the Debug class and Trace class?
What is monitor in C#?
0 Answers TryTechnicals Pvt Ltd,
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)