Re: void vs void* (philosophical question)
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 11:24:26 GMT
Giannis Papadopoulos wrote:
According to the standard (ISO C99 draft WG14/N1124),
void is the incomplete type that cannot be completed
and comprises the empty set of values.
Since it declares the absense of a value can it be considered a
data type?
No.
sizeof(void) is undefined.
You can't declare an object of type void.
You can't have an array of type void elements.
An expression of type void can neither be
the left nor right operand of the assignment operator.
--
pete
.
- References:
- void vs void* (philosophical question)
- From: Giannis Papadopoulos
- void vs void* (philosophical question)
- Prev by Date: Linked list, no out put,help
- Next by Date: Scope of specifier extern
- Previous by thread: Re: void vs void* (philosophical question)
- Next by thread: Re: void vs void* (philosophical question)
- Index(es):
Relevant Pages
|