1. Engineering
  2. Computer Science
  3. question 7 if a variable uses more than one byte...

Question: question 7 if a variable uses more than one byte...

Question details

QUESTION 7 If a variable uses more than one byte of memory, for pointer purposes its address is: o the address of the last byte of storage O the average of the addresses used to store the variable O the address of the first byte of storage O general delivery O None of these QUESTION 8 Look at the following code. int numbers[] 0,1, 2 3, 41; int ptr- numbers, After this code executes, which of the following statements is true? o ptr will hold the address of numbers[0] O ptr will hold the address of the 2nd byte within the element numbers[O] O ptr will hold the address of numbers[1] O This code will not compile QUESTION 9 Look at the following statement: This statement: O is illegal in C++ o will always result in a compiler error O assigns the dereferenced pointers value, then increments the pointers address O increments the dereferenced pointers value by one, then assigns that value O None of these

QUESTION 10 Look at the following statement. int ptr In this statement, what does the word int mean? O The variable named ptr will store an integer value O The variable named ptr will store an asterisk and an integer value O ptr is a pointer variable that will store the address of an integer variable. O All of these O None of these QUESTION 11 Not all arithmetic operations may be performed on pointers. For example, you cannot__or a pointer. multiply, divide o add, subtract O increment, decrement O None of these QUESTION 12 The and operators can be used to increment or decrement a pointer variable. o addition, subtraction O modulus, division O All of these O None of these

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution