CSC373/406: Example: The dereferencing operator [7/8] |
*&x
is the same as x
file:pointer.c [source]
00001: #include <stdio.h> 00002: 00003: int main() { 00004: int x; 00005: int *xptr; 00006: xptr = &x; 00007: *xptr = 5; 00008: printf("x = %d\nxptr *dereferenced is %d\n",x, *xptr); 00009: return 0; 00010: } 00011: