int *p,*q;
p=q////deep copy; p=*q;//sahlow copy m i ryt? On Sat, Oct 1, 2011 at 6:06 PM, rahul sharma <rahul23111...@gmail.com>wrote: > sukran can u given a litle xample plz... > > > On Sat, Oct 1, 2011 at 6:01 PM, sukran dhawan <sukrandha...@gmail.com>wrote: > >> deep copy-value copy >> so for pointers oly address is copied nt the value >> so its like two variables pointing to same value >> >> shallow copy means pointed to value is copied.so two distinct copies >> exists >> >> >> On Sat, Oct 1, 2011 at 5:20 PM, rahul sharma <rahul23111...@gmail.com>wrote: >> >>> plz xpalin waht is deep and shallow copy in c++ >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.