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