Code help

No way this is going to compile:

two_character_string[0] = 0;
two_character_string[1] = 0;

char two_character_string[2] = {0, 0};

even if we move the two_character_string declaration before the assignments.

The reason is you can't have an assignment operation outside a function, unless it's an initialization assignment.

So the 2-chars array is declared and initialized. The problem is those two assigments and the fact that (in the original code) the initialization uses a not-yet-declared char variable.

But we're just splitting hairs I guess :slight_smile: