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.

Computer Science & Information Technology

You might also like to view...

To print the current Web page, select the _____ menu, then select Print.

A. File B. View C. Output D. Edit

Computer Science & Information Technology

A variation of the LRU page replacement algorithm known as the clock page replacement policy is implemented using a pointer to step through the reference bits of the active pages, simulating a clockwise motion.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology