Solved

Consider the Following Function

Question 22

Multiple Choice

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) Pointer/offset notation where the pointer is actually the name of the array.
C) Pointer subscript notation.
D) Pointer/offset notation.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents