Q:

We cannot use the relational operators on pointers to two unrelated objects

0

We cannot use the relational operators on pointers to two unrelated objects.

All Answers

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

int i = 0, sz = 42;
int *p = &i, *e = &sz;
// undefined: p and e are unrelated; comparison is meaningless!
while (p < e)

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

total answers (1)

Similar questions


need a help?


find thousands of online teachers now