I have an array in it. I use the function to look for the symbol that is most common. But if I set the maximum element in the array 200, then everything is OK. and if 20,000 then no longer wants to display the result. Is it really impossible to work with large arrays?
const int max_elem = 20000; char *array1 = new char(max_elem); // и рандомно заполняю массив. Я этот код не скидывал, он правильно работает char find = findCharacter(array1, max_elem); // тут я своей функцией ищу символ, она правильно работает