QUESTION 2 The member access operator is used to access a s
QUESTION 2
The member access operator ______ is used to access a structure or class component via a pointer.
a. .
b.>>
c.*
d.->
______________________________________________________________________________________________________________________________
QUESTION 5
Two pointer variables of the same type can be compared for equality.
True
False
______________________________________________________________________________________________________________________________
QUESTION 9
If sptr is a pointer pointing to the first element of an array named sarray. To increment sptr to point to the second element of an array, you would use sptr + 1.
True
False
______________________________________________________________________________________________________________________________
QUESTION 10
In C++, the asterisk character is only used as the binary multiplication operator.
True
False
______________________________________________________________________________________________________________________________
QUESTION 13
The member access operator arrow is used to access a class component via a pointer.
True
False
______________________________________________________________________________________________________________________________
QUESTION 16
sptr is a pointer pointing to the beginning of an array called sarray. To access the value in sarray[5] by using the pointer, you would use:
1. *sptr[*3]
2. *sptr+3
3. sptr + 3
4. *(sptr + 3)
______________________________________________________________________________________________________________________________
QUESTION 27
In C++, &p, p, and *p all have the same meaning.
True
False
Solution
Answer:
QUESTION 2
The member access operator -> is used to access a structure or class component via a pointer.
d.->
QUESTION 13
The member access operator arrow is used to access a class component via a pointer is true

