CPS 196 week 15

CPS 196 week 15 - CPS 196 week 15 Pointer main has own...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CPS 196 week 15 Pointer main has own table of content int i; int j; j=17; i=5; int result; result= plus(i,j); myfunction table of content int x; x=10; plus( int x, int y); include <stdio.h> void myfunction (int *x) {
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
printf (“the value of x in the function myfunction is %d \n”, x); printf (“the value in the address point by x is %d \n”, *x); } int main (void) { int I; i=5; printf(“the value of i in the function myfunction is %d \n”, i); printf(“the address of the variable i is%d. \n”, &i); myfuntcion(&i); return 0; Final Project Due 12/12 at noon
Background image of page 2
1. function is given a. function ttt, b. function size return 1 or 0, returns 1, someone won c. must write comments about this function d. write comments on top of this function ?/* …. */ and inside the function //…. e. int checkboard (int size, char ttt[][10] 2. extra credit a. if you can get computer to play b. use random pick row, and random pick column Dec 7, 2011 Term Project: Tic Tac Toe 1. start (square) 2. asking for size (square)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/16/2012 for the course CPS 196 taught by Professor Staff during the Spring '08 term at Syracuse.

Page1 / 4

CPS 196 week 15 - CPS 196 week 15 Pointer main has own...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online