We help IT Professionals succeed at work.
Get Started

memory storage

karthikeya asked
Last Modified: 2013-11-15
Pls give me a soln for the following problem

 i hope there are 3 types to derive an object
 1- stack area
 2- heap are
 3- data area

 for ex:

 // object derivation in data area
 class  mydataobject
 } data1,data2;

 // object derivation in heap area
 class  myheapobject
 void main()
myheapobject heap1= new myheapobject();

// object derivation in stack area
 class  mystackobject
 void main()
mystackobject stack1;
suppose we are having some member variables like  a,b,c

 now for the above derived object like myheapobject,mystackobject,mydataobject
 where does the member variables stored either in stack or in heap

 pls explain me

Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE