Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 pointer's value, then increments the pointer's address O increments the dereferenced pointer's 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started