Question.6
A developer computes the number of elements between two pointers:
int arr[6] = {10, 20, 30, 40, 50, 60}; int *start = &arr[1]; int *end = &arr[4]; int count = end - start;
What is the value of count?
count
Select Answer
3 (elements)
3
12 (bytes, on a 32-bit platform)
12
4
Undefined — pointer subtraction is not allowed