printfb dn b print out b 8 printaa call

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: \n", *b); (print out “a: 0”) b=b+2; /* U */ (Increment the pointer b to point to the third element of array A) printf("b: %d\n", *b); (print out “b: 4”) b++; /* V */ (Increment the pointer b to point to the fourth element of array A) printf("b: %d\n", *b); (print out “b: 6”) *b= ­1; /* W */ (Assign  ­1 to A[3]) printf("b: %d\n", *b); (print out “b:  ­1”) printA(A); (Call function printA(), print out “ A={0,2,4, ­1,8,10}”) *b++= ­2; /* X */ (First it assign  ­2 to A[3], then it increment the pointer b to point to the fifth element of array A. So in the end, A[3] =  ­2.) printf("b: %d\n", *b); ( Print out “b: 8”) printA(A); (Call function printA(), print out “ A={0,2,4, ­2,8,10}”) *b++= ­4; /* Y */ (First it assign  ­4 to A[4], then it increment the pointer b to point to the fifth element of array A. So in the end,...
View Full Document

This note was uploaded on 01/13/2014 for the course EECS 452 taught by Professor Staff during the Fall '08 term at University of Michigan.

Ask a homework question - tutors are online