/* * Chapter2 * Assignemnt3.c * By: John Stile * */ #include // include functions from stdio.h lib when compiling this code int main(void) // header for main function block { // start main funciton block int num; // decalre variable num of type int int * pnum; // declare pointer named pnum of type int pointer printf(" Please enter an integer: "); scanf ("%d",&num); //num=8; // assign num value of 8 pnum=# // assing int pointer pnum address of int variable num. printf("The value of num is %d\n", num); // Print the value in num (aka 8) *pnum=(*pnum)*(*pnum); // multply 8 * 8 and store in variable num printf("The value fo the num is %d\n", num); // Print the value in num (aka 64) return 0; // Return 0 from function main } // exit main funciton block