Which of the following statements about pointer arithmetic is true?
A. Any arithmetic operator can be used to change the value of a pointer.
B. Given a pointer ptr, ptr + n is a pointer to the value n elements away.
C. Pointer arithmetic is a short-hand notation that changes the value that a pointer is referencing.
D. Pointer arithmetic is valid only with pointers to arithmetic variables, such as pointer to integer.
E. Pointer arithmetic is valid only with the name of the array.
Answer: B
You might also like to view...
The order of the arguments passed to function replace_copy_if must be:
a. OutputIterator, InputIterator, ReplacementValue, PredicateFunction. b. InputIterator, OutputIterator, PredicateFunction, ReplacementValue. c. OutputIterator, InputIterator, InputIterator, ReplacementValue, PredicateFunction. d. InputIterator, InputIterator, OutputIterator, PredicateFunction, ReplacementValue.
In the Java coordinate system, the point (0, 0) is ________.
a. The lower-right corner of the screen. b. The upper-right corner of the screen. c. The lower-left corner of the screen. d. The upper-left corner of the screen.
A method is an object attribute stored as a variable that describes a particular aspect or feature of the object.
Answer the following statement true (T) or false (F)
Once you have created a table, the ____ tab appears on the Ribbon.
A. TABLE TOOLS B. TABLE TOOLS STYLES C. TABLE TOOLS LAYOUT D. TABLE OPTION