Consider the following function:
void reverse(char * string1, const char * string2)
{
int stringsize = sizeof(string1)/sizeof(char);
*(string1 + stringsize – 1) = '\0';
string1 = string1 + stringsize – 2;
for (; *string2 != '\0'; --string1, ++string2) {
*string1 = *string2;
}
}
What method does the function use to refer to array elements?
a) array/subscript notation
b) array/offset notation
c) pointer/subscript notation
d) pointer/offset notation
d) pointer/offset notation
You might also like to view...
One of the fastest ways to switch from editing one method to editing another is to right-click an invocation of that method in the ____ and then choose its name from the ____ that appears.
A. object tree; object selector B. editing area; context menu C. structure diagram; context menu D. details area; object selector
An element of a two-dimensional array is referred to by
a. the array name followed by the column number of the element b. the row subscript of the element followed by the column subscript of the element c. a comma followed by a semicolon d. the row subscript of the element followed by the array name e. None of these
What is the best case scenario complexity of search in a binary search tree?
a. O(log n) b. O(1) c. O(n) d. O(n^2)
Answer the following statement(s) true (T) or false (F)
1. When you adjust the tracking between characters, text shifts left or right on the text layer, changing its relation to the left margin. 2. To work with metrics and optical kerning, you can choose either Metrics or Optical, rather than a number setting, from the Set the kerning between two characters list on the Character panel. 3. Even after you warp text, characters continue to have a consistent font size. 4. Drawing tools, like the Pen Tools, provide an easier way than the Ellipse Tool, the Rectangle Tool, and the Custom Shape Tool to create interesting paths for text.