Question: Hello I need help with a few questions on an assigment: Question 11 pts Which of the following is a true statement about the code
Hello I need help with a few questions on an assigment:
Question 11 pts
Which of the following is a true statement about the code below? int grades[] = {100, 92, 87, 99, 100}; printIt(grades[2]);
| The number 100 is passed to the printIt function. |
| The number 92 is passed to the printIt function. |
| The number 87 is passed to the printIt function. |
| The number 99 is passed to the printIt function. |
| None of the above is correct because a memory address is passed as the argument. |
Flag this Question
Question 21 pts
Which statement correctly declares a two-dimensional array with four rows and two columns?
| int temp[2][4]; |
| int temp[4][2]; |
| int temp[4*2]; |
| int temp[4, 2]; |
Flag this Question
Question 31 pts
If an array is declared using the statements below then the index of the last element in the array is ____.
const int AA = 3; double arrayA[AA];
| 0 |
| 1 |
| 2 |
| 3 |
Flag this Question
Question 41 pts
Assuming four bytes for an int and a column size of 4, if val is a two-dimensional int array, the array element val[1][2] is located at an offset of ____ bytes from the start of the array.
| 4 |
| 24 |
| 16 |
| 28 |
Flag this Question
Question 51 pts
When passing an array to a called function, for example printArray(arrayName); the function receives ____ array.
| a copy of the |
| selected elements of the |
| the first element of the |
| access to the actual |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
