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

How do you implement multiple inheritance in .NET?

5 Answers   Infosys, Microsoft,


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

0 Answers  


Why delegate is used in c#?

0 Answers  


Why do we use yield in c#?

0 Answers  


What statements can enclose a "continue" statement?

3 Answers   Fortech,


What?s a delegate?

3 Answers  


Can you have an array of arrays?

0 Answers  


What is the use of base keyword? Tell me a practical example for base keyword’s usage?

0 Answers  


Illustrate race condition?

0 Answers  


Can you have more than one namespace in c#?

0 Answers  


What is the adv of using System.Text.StringBuilder over System.String?

0 Answers   Siebel,


What does it meant to say “the canonical” form of XML ?

1 Answers  


Categories