Subj : Dynamic Array Initialization To : borland.public.cpp.borlandcpp From : kvgs Date : Sun Mar 27 2005 11:11 pm Hello, I want to ask why this code is wrong: int *Bets; Bets = new int [10]; Bets[10] = {1,2,3,4,5,6,7,8,9,10}; for (int i=0; i<10; i++) ShowMessage(IntToStr(Bets[i])); delete[] Bets; If I do this instead and don't use a dynamic array, everything is ok int Bets[10] = {1,2,3,4,5,6,7,8,9,10}; Why is this happening? .