// Apr07.cpp : Defines the entry point for the console application. // #include "stdafx.h" void printarray(int yvalues[]); int _tmain(int argc, _TCHAR* argv[]) { float x = 2.3; float *pointer_to_x; int i; int y_array[3] = {10, 11, 12}; pointer_to_x = &x; printf("x = %f\n", x); printf("x = %f\n\n", *pointer_to_x); printarray(y_array); printf("x = %d %d %d\n", y_array[0], y_array[1], y_array[2]); printf("x = %d %d %d\n", *y_array, *y_array+1, *y_array+2); for (i=0; i<3; i++) printf("x = %d ", (*y_array)++); printf("\n"); return 0; } void printarray(int yvalues[]) { int j; for (j=0; j<3; j++) printf("y(%d) = %d \n",j, yvalues[j]); return; }