{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

EECS452_HW#1

printfb dn b print out b 8 printaa call

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

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online