Original Post
hello, and firstly sorry for about my english, here is some code wihch i can't understand debuging results; struct my_struct_type{ char my_array1[10]; char my_array2[10]; } my_struct_type my_struct[10] = {}; public: Form1(void) { InitializeComponent(); my_struct[0].myarray1[0] = 'a'; my_struct[0].myarray1[1] = 'a'; my_struct[0].myarray1[2] = 'a'; my_struct[0].myarray1[3] = 'a'; my_struct[0].myarray1[4] = 'a'; my_struct[0].myarray1[5] = 'a'; my_struct[0].myarray1[6] = 'a'; my_struct[0].myarray1[7] = 'a'; my_struct[0].myarray1[8] = 'a'; my_struct[0].myarray1[9] = 'a'; my_struct[0].myarray1[10] = 0; / my_struct[3].myarray1[0] = 'a'; my_struct[3].myarray1[1] = 'a'; my_struct[3].myarray1[2] = 'a'; my_struct[3].myarray1[3] = 'a'; my_struct[3].myarray1[4] = 'a'; my_struct[3].myarray1[5] = 'a'; my_struct[3].myarray1[6] = 'a'; my_struct[3].myarray1[7] = 'a'; my_struct[3].myarray1[8] = 'a'; my_struct[3].myarray1[9] = 'a'; my_struct[3].myarray1[10] = 0; my_struct[5].myarray1[-4] = 'a'; my_struct[5].myarray1[-3] = 'a'; my_struct[5].myarray1[-2] = 'a'; my_struct[5].myarray1[-1] = 0; // //TODO: Add the constructor code here // } protected: /// /// Clean up any resources being used. /// ~Form1() { if (components) { delete components; } } at debugging, when i read these values, i see my_struct[0].myarray1 isnt "aaaaaaaaaa". it has not related values ("mgnıonondoş" etc) and my_struct[3].myarray1 isnt "aaaaaaaaaa", its first 4 value is null, and last 6 value has 'a', and myarray2's first 4 value is "aaaa" even though there is no code about myarray2. and my_struct[5].myarray1 is "aaa" when i write to index (-4)of array compiler save this value to index 0 of array. what is the cause of this slip? i use visual studio2005 c++ compiler.