initial import
[staff/goc4/2018bti7061.git] / c-4-pointers / examples / c-pointers / pointers3.c
1 #include <stdio.h>
2
3 main(){
4 int v = 3;
5 int *pv; /* pv is a pointer to v */
6 pv = &v;
7 printf("*pv = %d; v = %d \n",*pv,v);
8
9 *pv = 0;
10 printf("*pv = %d; v = %d \n",*pv,v);
11
12
13 /* Output:
14 *pv = 3; v = 3
15 *pv = 0; v = 0
16 */
17
18
19 }