The new construct allocates memory. You can "new" anything that requires a set amount of memory.This is equivalent to what you want: auto s = new char[0];
Also can be: char[] s; Which creates a new array of 0 length also. -Steve
The new construct allocates memory. You can "new" anything that requires a set amount of memory.This is equivalent to what you want: auto s = new char[0];
Also can be: char[] s; Which creates a new array of 0 length also. -Steve