Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. int foo( int boot[5] ); 2. int foo( int* boot ); 3. int foo( int boot[] ); 4.

ID: 3652896 • Letter: 1

Question

1. int foo( int boot[5] );

2. int foo( int* boot );

3. int foo( int boot[] );

4. int foo ( int x );

5. int foo( int *x );

6. int foo( int tire[3][5] );

Illustration 3: Function prototypes

-----------------------------------------------------

24. Illustration 3: Does line 2 declare an integer pointer?

A. yes

B. ' * '

C. int

D. no

25. Illustration 3: Does line 3 declare an integer pointer?

A. yes

B. [ ]

C. no

D. int

26. Illustration 3: Can the integer pointer from line 2 be used

with subscripts?

A. No

B. boot

C. yes

D. only outside function

27. Illustration 3: Can the integer pointer from line 3 be used

with subscripts?

A. Yes

B. { }

C. boot

D. no

28. Illustration 3: Which line above declares an integer

value?

A. 4

B. 5

C. 1

D. 6

29. Illustration 3: Could line 5 be used to declare an array?

A. no

B. yes

C. with [ ]

D. int

30. Illustration 3: Could line 5 be used to declare the pointer

to a single integer value?

A. no

B. as an array

C. ( )

D. yes

31. Illustration 3: Which line is most useful to declare a

reference to ( the pointer to) a specific element of an

integer array ( such as &donut[4] ) ?

A. 1

B. 3

C. 5

D. 2

32. Illustration 3: Which line is most useful to declare the

value of a specific element of an integer array ( such as

donut[4] ) ?

A. 1

B. 6

C. 4

D. 3

Explanation / Answer

please rate - thanks

1. int foo( int boot[5] );                   parameter is an array

2. int foo( int* boot );                    parameter is a reference value

3. int foo( int boot[] );                parameter is an array

4. int foo ( int x );                      parameter is a single integer value

5. int foo( int *x );                        parameter is a single reference value

6. int foo( int tire[3][5] );           parameter is a 2 dimensional array

Illustration 3: Function prototypes

-----------------------------------------------------

24. Illustration 3: Does line 2 declare an integer pointer?

A. yes

B. ' * '

C. int

D. no

25. Illustration 3: Does line 3 declare an integer pointer?

A. yes    all arrays are reference parameters

B. [ ]

C. no

D. int

26. Illustration 3: Can the integer pointer from line 2 be used

with subscripts?

A. No

B. boot

C. yes

D. only outside function

27. Illustration 3: Can the integer pointer from line 3 be used

with subscripts?

A. Yes

B. { }

C. boot

D. no

28. Illustration 3: Which line above declares an integer

value?

A. 4

B. 5

C. 1

D. 6

29. Illustration 3: Could line 5 be used to declare an array?

A. no

B. yes

C. with [ ]

D. int

30. Illustration 3: Could line 5 be used to declare the pointer

to a single integer value?

A. no

B. as an array

C. ( )

D. yes

31. Illustration 3: Which line is most useful to declare a

reference to ( the pointer to) a specific element of an

integer array ( such as &donut[4] ) ?

A. 1    these are identical

B. 3

C. 5

D. 2

32. Illustration 3: Which line is most useful to declare the

value of a specific element of an integer array ( such as

donut[4] ) ?

A. 1    these are identical

B. 6

C. 4

D. 3