new g_szString1[] = "txt1"; // 5 elements new g_szString2[5]; // Or sizeof(g_szString1) g_szString2 = g_szString1; g_szString1 = "txt2";