When does a stack member will be initialized? A. when object is created B. when object is initialized. C. does not depend on object. D. none.

Showing Answers 1 - 1 of 1 Answers

suraj mahapatro

  • Oct 17th, 2006
 

ans:- when object is created.

because memory will be allocated when the object is created. and the member in a stack(which is a static memory)will be initialized during the compile time itself. if it were a heap thn the member will be initialized during run time as a process of dynamic allocation. when the new() will be called

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions