In <jpedgm$br1$> Raj Pashwar <> writes:
> Hello
> I would like to define a variable of void type. However I get compiler
> errors:
> void x; // error: variable or field ‘x’ declared void
> Infact there is a typedef and I want to allow the defined type to be,
> void. However, the error is the same.
I believe you are only allowed to declare void pointers, not plain voids.
This is allowable:
void *x;
But not this:
void x;
--
John Gordon A is for Amy, who fell down the stairs
B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"