Hello,
Some way the pointers are used confuses me.
When use as below
Code:
int a = 5;
int *p = &a;
printf("address of p = %d\n", &p);
printf("Address pointed by p = %d\n", p);
printf("Address of a = %d\n", &a);
printf("Value pointed by p = 5d\n", *p);
Code:
OUTPUT: address of p = 1987328632 Address pointed by p = 1987328628
Address of a = 1987328628
Value pointed by p = 5
here p is pointed to the memory address of a
But what does this mean To print this
1. Is z pointer here?? If yes, then why instead of 2. Is z pointed to 7 or the address of 7 ?
3. What is the address of z ?
4. Why can't I use ??