![]() |
| | #1 |
| Registered User Join Date: Oct 2009
Posts: 15
| Passing by reference in threads Can you give an hint? Thanks |
| tmcp is offline | |
| | #2 | |
| new destructor Join Date: Jul 2008 Location: SE Queens
Posts: 5,036
| Quote:
However, you can pass a memory address, which is a value, using a pointer. In fact, this is how "pass by reference" is implemented in higher level languages -- they are C pointers. So the information you are looking for involves "how to pass a pointer to a struct" not "how to pass a struct by reference".
__________________ “The essential element in the black art of obscurantism is not that it wants to darken individual understanding, but that it wants to blacken our picture of the world, and darken our idea of existence.” [Friedrich Wilhelm Nietzsche, 1878] | |
| MK27 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| In over my head | Shelnutt2 | C Programming | 1 | 07-08-2008 06:54 PM |
| Passing by reference not always the best | franziss | C++ Programming | 3 | 10-26-2005 07:08 PM |
| Textbox | maxorator | Windows Programming | 20 | 09-25-2005 10:04 AM |
| Problem with OpenGL tutorial | 2Biaz | Windows Programming | 18 | 09-16-2004 11:02 AM |
| qt help | Unregistered | Linux Programming | 1 | 04-20-2002 09:51 AM |