Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


If you define integer variable and a object variable and a structure then how those will be plotted in memory ?



If you define integer variable and a object variable and a structure then how those will be plotted ..

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

Post New Answer

More C Sharp Interview Questions

What is tochararray in c#?

0 Answers  


Explain what are three test cases you should go through in unit testing?

0 Answers  


6. If we assign a value in textbox on Page_UnLoad event, will it display?

2 Answers   Mphasis,


What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NET Framework.

5 Answers  


Why do we use Design Pattern in C#?

0 Answers   Impetus,


What is a nullreferenceexception and how do I fix it?

0 Answers  


Explain about throw keyword?

10 Answers   Emphasis, HCL, Satyam,


Difference between debug.write and trace.write?

0 Answers  


Can an exception be thrown from a catch block?

0 Answers   Alcatel-Lucent,


what is collections in .net? why we use?

0 Answers  


What?s the difference between the Debug class and Trace class?

2 Answers   Siebel,


What is monitor in C#?

0 Answers   TryTechnicals Pvt Ltd,


Categories