Why we can decalre a variable as "void* x" but not "void x"? Why is "void* x" useful?
example:
int main()
{
void* a;
return 0;
}
The above code compiles and runs sucessfully
int main()
{
void a;
return 0;
}
The above code gets the following compile error:
b.c:6:10: error: variable has incomplete type 'void'
void a;
^
1 error generated.