/* * Chapter2 * Assignemnt1c.c * By: John Stile * */ #include // include functions from stdio.h lib when compiling this code int sqr(int xx) // header for function sqr, takes int refers to it as xx in the block. returns an int to caller. { return(xx * xx); // return the square of the value in xx } int main(void) // header for main { int yy=2; // declare and assign int variable yy value of 2 yy=sqr(sqr(sqr(yy))); // call the function sqr 3 times, // first pass the value of yy, // and then call sqr, passing the result, // and then call sqr, passing the result, // and finally assign the final return value to yy printf("The value of yy is %d\n", yy); // print the value stored in yy return 0; // return an exit value 0 to the calling program. }