CSC373/406: Example: The dereferencing operator [7/8] Previous pageContentsNext page

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: 

Previous pageContentsNext page