Answer the question
In order to leave comments, you need to log in
How to create a large array in different initializations?
We need a large array of type char
Array will be needed all the time, that is, dynamic memory allocation, in fact, is absolutely useless.
But:
Why can't I create a large array (static)
char p[1000000];
char *kuk = new char[1000000];
delete [] kuk;
Answer the question
In order to leave comments, you need to log in
Why can't I create a large static array
Apparently because you must first read books, and then program. If you don’t even know the basics, they will write in books much better than on forums, etc. And you seem too lazy to read books. Working with memory is far from the most trivial task, first study how memory is organized in the OS, the mechanisms of interaction and memory management in the programming language. Eventually, the questions will disappear. And the fact that they will answer you here, you still will not learn, because. said above, you don't know the basics.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question