What is the address here ?
int main(void) {
int i = 5;
int *p;
p = &i;
printf("%d\n",*p);
printf("%d\n",i);
printf("%d\n",p);
printf("%d\n",&i);
printf("%p\n",p);
printf("%p\n",&i);
return 0;
}
output:
5
5
-7530484
-7530484
0xff8d180c
0xff8d180c
those are the outputs but why p gives me -7530484
i guess it must be pointer but then what is this 0xff8d180c
?