Linked Questions

45 questions linked to/from Is there a max array length limit in C++?
-6 votes
3 answers
17k views
-3 votes
1 answer
15k views

We can store elements only up to a [10000000] (10^7) in a array of integers.Is there a way to store even more number of data's.And also what is the maximum size of character array.Please forgive if ...
Mukesh Jha's user avatar
1 vote
1 answer
285 views

I am trying to create a 2 dimensional int array of size 800. This is my code: #include <iostream> int main() { int array[800][800]; std::cout << 1; } My problem is that it never ...
N. Rak's user avatar
  • 138
0 votes
5 answers
227 views

(edited to correct a mistake and specify code is written for C++) I am making a large array, P_arr of size int N = 30; float P_arr[27000][4]; with elements given by float ua_min = 0.0001, ...
Zachary's user avatar
0 votes
0 answers
77 views

Does anyone what the largest array is that I can allocate in Visual C++ 2010? The maximum number of elements, I mean. Can I do something like int tarray [unsigned long], where unsigned long is some ...
651 votes
29 answers
1.3m views

How do i declare a 2d array using new? Like, for a "normal" array I would: int* ary = new int[Size] but int** ary = new int[sizeY][sizeX] a) doesn't work/compile and b) doesn't accomplish what: ...
79 votes
9 answers
51k views

Today I was helping a friend of mine with some C code, and I've found some strange behavior that I couldn't explain him why it was happening. We had TSV file with a list of integers, with an int each ...
54 votes
7 answers
22k views

The following code is generating a stack overflow error for me int main(int argc, char* argv[]) { int sieve[2000000]; return 0; } How do I get around this? I am using Turbo C++ but would like ...
4 votes
8 answers
7k views

when using C++ vector, time spent is 718 milliseconds, while when I use Array, time is almost 0 milliseconds. Why so much performance difference? int _tmain(int argc, _TCHAR* argv[]) { const int ...
11 votes
8 answers
2k views

I don't know what to think here... We have a component that runs as a service. It runs perfectly well on my local machine, but on some other machine (on both machine RAM's are equal to 2GB) it starts ...
8 votes
4 answers
5k views

I am curious whether it is possible to determine the maximum size that an array can have in C++. #include <iostream> using namespace std; #define MAX 2000000 int main() { ...
SirGuy's user avatar
  • 10.8k
6 votes
4 answers
16k views

With the syntax for MPI::Isend as MPI::Request MPI::Comm::Isend(const void *buf, int count, const MPI::Datatype& datatype, int dest, int tag) const; is the amount of ...
Suman Vajjala's user avatar
2 votes
6 answers
3k views

I hope some one can help me, i'm trying to create an int[400000000] (400 millions) array on my application using visual c++ 2010 but it generates an overflow error The same code runs on linux with g++....
4 votes
6 answers
4k views

When i do: vector<double> myVect(120000000, 0); I can make the vector hold seemingly as many elements as i want. However, when i do: double myArray[120000]; I am limited to somewhere around ...
Rob Allsopp's user avatar
  • 3,557
4 votes
3 answers
11k views

Is there any kind of limit, system or otherwise, for dynamic allocation with new or malloc in C++? The system is 64bit and I want to allocate an array of some ~800million structs. Edit: The reason I ...
ayu's user avatar
  • 111

15 30 50 per page
1
2 3