Why we have pointers with diffrent types

Hi
I am very Igor to know why we have different types of pointer as we can use Void pointer for all data types. Then what the reason to have pointes with diff data type as each requires(4 bytes).
Type safety
When you dereference a pointer, you must know the type it's pointing to.
Also, pointer arithmetic doesn't work if you don't know the size of the item pointed to.
Topic archived. No new replies allowed.