#include <stdio.h> main() { double x, y[2] = {1.0,2.0}, *ptr1; int i, j, *ptr2; i = j = 9; ptr2 = &i; *ptr2 = 3; x = 2.7; ptr1 = &y[0]; /* note you can also write: ptr1 = y; */ *ptr1 = x; ptr1 += 1; /* you can also use: ptr1 = ptr1 +1; or: ptr1++; */ *ptr1 = x; /* you can always add in some print statements at the end to make sure you know what values the variables have when the program executes. Eg printf("%lf %lf %lf\n", x, y[0], y[1]); and printf("%d\n", i); */ }