> my answer was 160, but according to the book, the answer is 120. I thought > (and it says in Forta's book) that a copy of a structure is just a pointer > to the original so that if you change the copy, you change the > original. Am > i missing something here? Can someone explain? Thanks for any help.
You're right that copies of a struct created using the assignment operator are simply pointers but the structCopy() function makes a deep duplicate of the struct that is in its own memory space and is not just a pointer to the original struct. So in the example from the exam the two structs are different entities ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

