Re: Re: Re: Re: Re: abt VOID *
Quote:
Originally posted by quzah
My reply was not some personal attack on unknown. I was trying to clarify the issue.
Sorry for being so grumpy
Quote:
Originally posted by quzah
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.
void is an incomplete type , like a structure which has been declared but whose members have not been still defined , but unlike other incomplete types a void cannot be completed ,so you can never have objects of type void . sizeof cannot be applied to any incomplete type .
I think (I might be wrong) a function taking in a void parameters nothing to do with it being a type , because a function cannot have more than one parameter if it has a void parameter and it does not have to declare a variable for the void type , which clearly marks out something like f(void) as a special syntax to indicate no parameters.