Q:

We can use the relational operators to compare pointers that point to elements of an array, or one past the last element in that array. For example, we can traverse the elements in arr as follows

0

We can use the relational operators to compare pointers that point to elements of an array, or one past the last element in that array. For example, we can traverse the elements in arr as follows.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

int *b = arr, *e = arr + sz;
while (b < e) {
// use *b
++b;
}
C++

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)