i am on the verge of learning c and i came across a problem that i do not know what the void command does if anyone in this world knows can you please help me out. confused!
programming language c/c++
Collapse
X
-
void is not a command in C, it is an incomplete type.Originally posted by sbu180i am on the verge of learning c and i came across a problem that i do not know what the void command does if anyone in this world knows can you please help me out. confused!
It can be used to
- declare functions that have no return type, take no arguments, or even both like
- as some kind of a generic pointer type (pointer to void) to and from which one can convert the value of any other pointerCode:void foo( void );
You'll find a more precise description in any good book on C.
Comment