R
Rahul
Hi Everyone,
It is possible to pass a structure to a function by value in c just
like how class is being passed to functions by value in c++.
c++ introduces the copy constructor for this very purpose of making
sure deep copy is performed on c++ objects which have pointers
pointing to some memory location.
It is very much possible to have a c structure having a pointer, how
does c solve the problem? making sure deep copy is done?
Thanks in advance!!!
It is possible to pass a structure to a function by value in c just
like how class is being passed to functions by value in c++.
c++ introduces the copy constructor for this very purpose of making
sure deep copy is performed on c++ objects which have pointers
pointing to some memory location.
It is very much possible to have a c structure having a pointer, how
does c solve the problem? making sure deep copy is done?
Thanks in advance!!!