Why are these two chars (of the same elements) not equal? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why are these two chars (of the same elements) not equal?

char a[] = "hello", b[] = "hello"; if (a !=b) cout << "they are not equal"; Why does the condition (a !=b) evaluate to true?

4th Aug 2020, 1:28 AM
Solus
Solus - avatar
1 Answer
+ 3
~ swim ~ Thanks, you're the best
4th Aug 2020, 1:41 AM
Solus
Solus - avatar