Ok... but there's any problem in using global arrays?
(Sorry but my basic knowledge is very poor)
Type: Posts; User: p3rry
Ok... but there's any problem in using global arrays?
(Sorry but my basic knowledge is very poor)
Why? I heard that dynamic allocation slows down the program and I need much statistic, so I'd prefer a faster simulation.
Hey yesterday the message board didn't work...but thank to your advices I got the solution of my problem.
The fact is that since I started to program in c nobody told me that I could declare global...
When I run the simulation with "smaller" arrays it works, and I get the results that I expect from it. The segfaults comes out when I raise the dimensions of the variables. That's why I don't think...
Hello everybody.
I'm working on this physical simulation with c language.
I need to allocate very large arrays, so I exploit much memory on my pc... I'm not so used in these kind of topics so I...