I have this bit of code:
printf("Address for ptr_one %p\n", &ptr_one);
printf("Non-Address for ptr_one %p\n", ptr_one);
printf("value for ptr_one %p\n\n", *ptr_one);
output:
Address for ptr_one 0xffffcbd8
Non-Address for ptr_one 0x600042b26
value for ptr_one 0x19
From what I understand the first line is the pointer address, and the third is the value which is at that address. But what is the second line printing out exactly?
It was initialized as such:
int *ptr_one = (int *)malloc(sizeof(int));
*ptr_one = 25;
edit: added initialize code