What method does the function use to refer to array elements?
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;
}
a. Array subscript notation.
b. Pointer/offset notation where the pointer is actually the name of the array.
c. Pointer subscript notation.
d. Pointer/offset notation.
d. Pointer/offset notation.
You might also like to view...
Use the fill algorithm to fill the entire array of strings named items with "hello".
What will be an ideal response?
Freezing keeps rows and/or columns visible as you scroll through a worksheet
Indicate whether the statement is true or false
A(n) ________ snip captures the entire displayed active window
Fill in the blank(s) with correct word
A(n) ____________________ program is a program that checks files for viruses.
Fill in the blank(s) with the appropriate word(s).