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:
Verified
Q13: Pointers cannot be used to:
A) Contain memory
Q20: Which of the following can have a
Q21: getline superstring, 30 );
Is equivalent to which
Q22: Given that k is an integer array
Q23: A string array:
A) Stores an actual string
Q25: A string array is commonly used for:
A)
Q27: Which of the following is not true
Q28: Which of the following is false for
Q29: Assuming that t is an array and
Q31: Comparing pointers and performing pointer arithmetic on
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents