answersLogoWhite

0

void is type of pointer that usually means that you can make it point to any data type.

When you make a pointer point to somewhere its data type should match with the place where you want it to point.

When you dont know the data type where it will point to then you can declare a void pointer and make it point to the data type it want.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
BeauBeau
You're doing better than you think!
Chat with Beau
More answers

because void is not return anything every function should have return something void is not return anything so use void

1. pointer: void * is the generic pointer type

2. return value: void means no return value (the default is int)

3. parameter-list: void means no parameters (the default is: unspecified)

User Avatar

Wiki User

14y ago
User Avatar

void is sort of a "null" type. It can be used to indicate that a function will not return a value or that a pointer has no type applied to it

User Avatar

Wiki User

14y ago
User Avatar

In C General purpose pointer is called as a void pointer. It doesn't have any data type associated with it. It can store address of any type of variable.

User Avatar

Wiki User

10y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Why do you use a void pointer in a programme?
Write your answer...
Submit
Still have questions?
magnify glass
imp