QUIZ 3 REVIEW Flashcards
Illustration 1: Which line declares an array?
int Array[10];
Illustration 1: Which line declares an integer?
int x;
Illustration 1: Which line declares an integer pointer?
int* px;
Illustration 1: Which line gives the value of the fourth element of an array?
Array[3]
Illustration 1: Which line gives the address of the third subscripted value of an array?
&Array[3]
Illustration 1: Which line specifies the value of an integer?
x
Illustration 1: Which line gives the pointer to the first element of an array?
Array
Illustration 1: Which line gives the contents of the address of the fourth element of an array?
*(&Array[3])
Illustration 1: Which line gives the address of an integer?
&x
Which line dereferences (gives the contents) of an address given by an integer pointer?
*px
. Illustration 2: Which line declares an integer?
int x;
Illustration 2: Which line declares an array with 10 elements?
Array[3]
Illustration 2: Which line calls foo with a copy of an integer?
foo(x);
Illustration 2: Which line calls foo with the address of an integer?
foo(&x);
Illustration 2: Which line calls foo with the address of the first element of an array?
foo(cherry, 3);