- Code: Select all
if{code.text == code2.text}
{
strcpy(code.text, "OK");
}
Whats false in this code?
char [] one = "a\0";
char [] two = "a\0";
if (one == two)
{
// the address is the same
}
if (one == one)
{
// the address is the same
}
if (strcmp(one, two) == 0)
{
// the values are the same
}
char * one = "a\0";
char one[] = "a\0";
Users browsing this forum: No registered users and 1 guest