Is it possible when initializing an array
char blah[2][5] = { "dog", "cat" };
to replace say "dog" with a variable? Such as this:
char blah[2][5] = { "cat", dog[cat-1] };
The way I just did it doesn't work, so is it possible and if so, how do I do it?
Edit - Forgot about the second [] on my char variables...oops 🙂
char blah[2][5] = { "dog", "cat" };
to replace say "dog" with a variable? Such as this:
char blah[2][5] = { "cat", dog[cat-1] };
The way I just did it doesn't work, so is it possible and if so, how do I do it?
Edit - Forgot about the second [] on my char variables...oops 🙂