Q:

Using these operators on similarly defined C-style strings compares the pointer values, not the strings themselves

0

Using these operators on similarly defined C-style strings compares the pointer values, not the strings themselves.

All Answers

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

const char ca1[] = "A string example";
const char ca2[] = "A different string";
if (ca1 < ca2) // undefined: compares two unrelated addresses

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