Is there is way to get the address of an object which is created? If No, why

 Posted by deccansoft on 9/16/2010 | Category: C# Interview questions | Views: 1165

No,there is no way to get the address of an object. We can only have the
reference to the object which is created to access the members of the
class for a given object. This is because once an object is created all the
variables(values/reference types) are allocated the memory in heap and
so it is very difficult to trace the exact address in heap memory

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response