If they contain exactly the same string, then strcmp returns 0 - so if your Led1 isn't getting a 1 then they clearly don't have the same value. A LCD display may not show that - the
nog
array will have four characters 'r', 'a', 's', and a null terminator - but we don't know what
arrr
contains. It could be as simple as the declaration
char aaar[] = "ras ";
which would cause strcmp to fail, but wouldn't show anything odd on your display. You need to look more closely ate the actual values - perhaps by displaying the hex values instead of the characters themselves?
And next time you post code here, make sure it is exactly what you are executing - I know that isn't, because that won't compile as c is case sensitive, and
if
is not the same as
If
,
for
is not the same as
For
, and so on.