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.

Concept of void pointer in C programming

Is it possible to dereference a void pointer without type-casting in the C programming language? Also, is there any way …

c void-pointers
error: cast from 'void*' to 'int' loses precision

I have a function with prototype void* myFcn(void* arg) which is used as the starting point for a pthread. …

c++ casting void-pointers
Pointer arithmetic for void pointer in C

When a pointer to a particular type (say int, char, float, ..) is incremented, its value is increased by the size …

c pointers void-pointers pointer-arithmetic
What is a void pointer in C++?

Possible Duplicate: What is a void pointer and what is a null pointer? I often see code which resembles something …

c++ void-pointers
Printing a void* variable in C

Hi all I want to do a debug with printf. But I don't know how to print the "out" variable. …

c printf void-pointers uint
Warning: cast to/from pointer from/to integer of different size

I'm learning Pthreads. My code executes the way I want it to, I'm able to use it. But it gives …

gcc int void-pointers gcc-warning
How do you convert void pointer to char pointer in C

Ok this has been become sooo confusing to me. I just don't know what is wrong with this assignment: void *…

c pointers void-pointers
How to check if void pointer points to NULL?

So if you do: void *ptr = NULL; What is the best way to check if that void pointer is NULL? …

c pointers void-pointers
Is it safe to delete a void pointer?

Suppose I have the following code: void* my_alloc (size_t size) { return new char [size]; } void my_free (void* …

c++ memory-management casting void-pointers