User Profile
Collapse
-
It's best to do const char* name = "MEHMET"; instead, as it adds the trailing '\0' and it's good practice to not play with implicit casts when you're not sure what might happen :) -
The type void* is, as JosAH said, a pointer to any type. To be more accurate, it is a pointer to no type at all, as it is just a pointer. In order to use a void pointer, you must use either an explicit or (eech) an implicit cast.
One of the advantages of void pointers are the fact you may cast it to anything. you may treat a void* as an int* on one line and an unsigned char* on the next.
--TroyLeave a comment:
No activity results to display
Show More
Leave a comment: