Meaning of (void *)

7

What does it mean to call a function with one that was int and is passed as (void *) ?

If the variable was declared as int because it is passed as a parameter to a *(void *)variavel* function?

Example

int var = 10;

teste((void *)var);
    
asked by anonymous 20.05.2014 / 21:26

1 answer

10

(void *) means that it is a pointer to a variable not specifying the type of the variable.

For example, you can have the same concept with (int *) where a pointer is to a variable of type int , specifying the type.

Microsoft has a document that explains this a bit in link

    
20.05.2014 / 21:35