I'm new with c++ programming and i got this newb guestion.
I got 2 variables, char a[5] = "hola"; and char b[5] = "hola";.
The problem is that when i check them like this:
it says "No hello to you".Code:char a[5] = "hola";
char b[5] = "hola";
if(a == b) {
cout << "Hello to you too\n";
}
else {
cout << "No hello to you\n";
}
So what i want to ask is why aren't those equal and how can i make variables a and b equal?