Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • First of all thanks a lot for your answer, you have been very clear and exhaustive :) Then how can i work with "half of varA"? Let's say i need to do void *function(int, half_of_varA);, how can i pass only "half of memory"? Commented Jan 30, 2013 at 22:44
  • You would choose one of void* p = function(1234, varA); or void* p = function(1234, varA + 32); depending on which half of varA you need to use. And I am using 1234 as a guess as to the first parameter of function(), of course. Commented Jan 30, 2013 at 22:48