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);
Illustration 2: Which line calls foo with the value of an element of an array?

foo(cherry[3]);
Illustration 2: Which line calls foo with the address of an element of an array which is not the first element?

foo(&cherry[3]);
Illustration 3: What makes the lines a function prototype?

semicolon
Illustration 3: Which line declares a single dimension integer array with an unnecessary dimension value?

int foo( int boot[5] );
Illustration 3: Which line declares a multi-dimension array?

int foo( int tire[3][5] );
Illustration 3: Which line declares an integer array without including dimension information?

int foo( int boot[] );
. Illustration 3: Which line declares that the function is receiving a copy of a value?

int foo ( int x );
Illustration 3: Does line 1 declare an integer pointer?

yes*