    #include <iostream>
    #include <string.h>
	
	int main() {
		for (size_t i = 0; i < 5; ++i) {
            // foo1 and foo2 assignments clear the entire array.
			char foo1[1024] = "";
			char foo2[1024] = { 0 };
            // this doesn't, so the previous values show thru in loop iterations.
			char foo3[1024];
			foo3[0] = '\0';

			std::cout << i << ": foo1[9] = " << foo1[9] << ", foo2[9] = " << foo2[9] << ", foo3[9] = " << foo3[9] << std::endl;

			strcpy(foo1, "123456789ABCDEF");
			strcpy(foo2, "123456789ABCDEF");
			strcpy(foo3, "123456789ABCDEF");
		}

		return 0;
	}