// More on pointers

#include <stdio.h>

int main (void)
{
     int  i1, i2;
     int  *p1, *p2;//pointers

     i1 = 5;
     p1 = &i1;//pointer p1 pointing to address of i1
     /*The '*' operator has higher precedent than '/' so the indirection
      * is evaluated first*/
     i2 = *p1 / 2 + 10; //get the value of p1 divide it by 2 add 10
     p2 = p1;// p2 is now pointing to where p1 is pointing

     /*notice *p1 and *p2 in the print statement  These mean get the value of 
      *  p1 and the value of p2 and print them*/
     printf ("i1 = %i, i2 = %i, *p1 = %i, *p2 = %i\n", i1, i2, *p1, *p2);

     return 0;
}
