0

I started with pointers in C recently and i ran this code on compiler where i found that my compiler was printing the address of void pointer incremented by 1 .Can you please resolve my query??

#include<stdio.h>
int main()
{
int a =1025;
int *p;
p =&a;
printf("Size of integer is %d bytes\n",sizeof(int));
printf("Address = %d , value = %d\n",p,*p);
//void pointer
void *p0;
p0 = p;
printf("address = %d",p0+1);
}

enter image description here

0 Answers0