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:

Verified
Correct Answer:
Verified
Q1: Comparing pointers and performing pointer arithmetic on
Q2: A pointer can not be assigned to:<br>A)
Q4: A string array:<br>A) Stores an actual string
Q5: Given that k is an integer array
Q6: Which of the following is false for
Q14: All of the following can cause a
Q18: Which of the following gives the number
Q22: Three of the following expressions have the
Q24: Pointers cannot be used to:<br>A) Contain memory
Q27: Which of the following is not a