void vs void* (philosophical question)
- From: Giannis Papadopoulos <ipapadop@xxxxxxxxxx>
- Date: Fri, 30 Jun 2006 12:52:51 +0300
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?
Regarding void*, is it just a simple reuse of the same keyword (void) or
they have a closer relationship? I could think of only one - a pointer
to an incomplete type. However, if one could say that void is the
absense of a value, how can we have a pointer to something that does not
exist?
--
one's freedom stops where others' begin
Giannis Papadopoulos
Computer and Communications Engineering dept. (CCED)
University of Thessaly
http://dop.freegr.net/
.
- Follow-Ups:
- Re: void vs void* (philosophical question)
- From: Chris Torek
- Re: void vs void* (philosophical question)
- From: Thomas J. Gritzan
- Re: void vs void* (philosophical question)
- From: pete
- Re: void vs void* (philosophical question)
- From: Richard Heathfield
- Re: void vs void* (philosophical question)
- From: Mark F. Haigh
- Re: void vs void* (philosophical question)
- Prev by Date: Re: OT: Good introduction to CPU/Memory terms
- Next by Date: Re: automated coding standard validation?
- Previous by thread: Joining 2 char to 1 short
- Next by thread: Re: void vs void* (philosophical question)
- Index(es):
Relevant Pages
|