1. int x; 2. int cherry[10]; 3. foo(x); 4. foo(&x;); 5. foo(cherry[3]); 6. foo(c
ID: 3652818 • Letter: 1
Question
1. int x; 2. int cherry[10]; 3. foo(x); 4. foo(&x;); 5. foo(cherry[3]); 6. foo(cherry, 3); 7. foo(&cherry;[3]); Illustration 2: Function calls --------------------------------------------- 11. Illustration 2: Which line declares an integer? A. 1 B. 2 C. 3 D. 6 12. Illustration 2: Which line declares an array with 10 elements? A. 3 B. 5 C. 2 D. 7 13. Illustration 2: Which line calls foo with a copy of an integer? A. 4 B. 6 C. 7 D. 3 14. Illustration 2: Which line calls foo with the address of an integer? A. 4 B. 3 C. 6 D. 7 15. Illustration 2: Which line calls foo with the address of the first element of an array? A. 4 B. 5 C. 6 D. 7Explanation / Answer
11 D 12 C 13 D 14 A 15 B
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.