Top "Void-pointers" questions

A void pointer (void *) in C and C++ is a pointer that points to a memory location with no specified type.

sizeof void pointer

why is sizeof void pointer 2 ?

c void-pointers
What does "typedef void (*Something)()" mean

I am trying to understand what this means, the code I am looking at has in .h typedef void (*MCB)(); …

c++ typedef static-members void-pointers
how to use void ** pointer correctly?

I am trying to use a double void pointer but I am a little bit confused about the usage. I …

c void-pointers
C struct to void* pointer

I have a struct defined as: typedef struct { int type; void* info; } Data; and then i have several other structs …

c void-pointers structure
How to cast an integer to void pointer?

While working with Threads in C, I'm facing the warning "warning: cast to pointer from integer of different size" The …

c casting void-pointers
C++. Error: void is not a pointer-to-object type

I have a C++ program: struct arguments { int a, b, c; arguments(): a(3), b(6), c(9) {} }; class test_class{ public: void *…

c++ casting void-pointers abstract-data-type
Converting a void* to a std::string

After perusing the web and messing around myself, I can't seem to convert a void*'s target (which is a …

c++ string printf void-pointers
c: size of void*

I'm a bit confused with a void* pointer in C. Especially after reading this question: Is the sizeof(some pointer) …

c void-pointers
array of type void

plain C have nice feature - void type pointers, which can be used as pointer to any data type. But, …

c arrays void-pointers
void pointer as argument

The following C snippet: [...] void f1(void* a){ printf("f(a) address = %p \n",a); a = (void*)(int*)malloc(sizeof(…

c pointers arguments argument-passing void-pointers