Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > struct having p...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 24508 of 27272
Post > Topic >>

struct having pointers's object being passed by value to a

by Rahul <sam_cit@[EMAIL PROTECTED] > Feb 4, 2008 at 10:56 PM

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!!!
 




 3 Posts in Topic:
struct having pointers's object being passed by value to a
Rahul <sam_cit@[EMAIL   2008-02-04 22:56:35 
Re: struct having pointers's object being passed by value to a
Ian Collins <ian-news@  2008-02-05 20:00:12 
Re: struct having pointers's object being passed by value to a f
Richard Heathfield <rj  2008-02-05 07:07:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 17:35:23 CDT 2008.