GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  C++

 Print  |  
Question:  what is importance of const. pointer in copy constructor?



August 08, 2006 02:47:18 #2
 Prashant Kumar   Member Since: Visitor    Total Comments: N/A 

RE: what is importance of const. pointer in copy const...
 
Because otherwise you will pass the object to copy as an argument of copy constructor as pass by value which by definition creates a copy and so on... an infinite call chain....Do you see that-Prashant
     

 

Back To Question