What are void pointers and why are they used?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the United Nations Office on Drugs and Crime, Lives in Vienna, Austria.
void pointer in C. A void pointer is a pointer that has no associated data type with it. A void pointer can hold address of any type and can be typcasted to any type. ... 2) void pointers in C are used to implement generic functions in C. For example compare function which is used in qsort().
2023-05-14 14:09:52
评论(499)
Helpful(122)
Helpful
Helpful(2)

Charlotte Young
QuesHub.com delivers expert answers and knowledge to you.
void pointer in C. A void pointer is a pointer that has no associated data type with it. A void pointer can hold address of any type and can be typcasted to any type. ... 2) void pointers in C are used to implement generic functions in C. For example compare function which is used in qsort().