Need help on pointer to VOID
Can anyone explain concisely about pointer variable which points to VOID such as:
void * void_prt;
How does memory space set up and allocate for pointer variable? Does it point to nothing memory chunks or to NULL???
I will appriaciate for your explaining.
DV007
Re: Re: Re: Re: abt VOID *
Quote:
Originally posted by pinko_liberal
Why do you misrepresent what I wrote ?
First off, I don't see you posting anything here. On that, I'll assume that you were "unregistered".
I didn't "misrepresent" what you wrote. I misread it, or at the time wasn't clear on what you were trying to get across.
My reply was not some personal attack on unknown. I was trying to clarify the issue.
You'll see how I could have possibly misunderstood your point, when your sentences come out like:
Quote:
It does not do so because sizeof is not supposed to do so.
Case and point. This is not only an awkward statement, it's also untrue. Or rather, again it can be misinterpreted.
'sizeof' is supposed to return the size of anything passed to it. If you pass it a pointer, it returns the size of the pointer. If you pass an object, it returns the size of the object. That is all, nothing more.
What I was trying to clarify is that exact line of thought. And for the record, there is a type of 'void'. You just cannot create instances of it. If there weren't 'void', how could you use it as return values and parameters?
Quzah.