char x = 'G';
char *p = &x;
printf ("Address of x: %p\n", p);
printf ("Address of x: %p\n", (void*)p);
Can someone tell me what exactly (void*)p
means? I know that it is the same as p
, as that also gives me the address of x
, but why is this written as (void*)p
?