1. int foo( int boot[5] ); 2. int foo( int* boot ); 3. int foo( int boot[] ); 4.
ID: 3652820 • 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. 3Explanation / Answer
24 D 25 B 26 C 27 D 28 A 29 A 30 A 31 B 32 C
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.