![]() |
how to create adjacent arrays in memory?
i'm new to programming. I wanted to create two integer arrays which are adjacent in memory. i had written the following code, but i'm getting segmentation fault when i run it.
Code:
#include<iostream> |
Re: how to create adjacent arrays in memory?
Why do you want them to be adjacent in memory, what problem do you think this will solve?
If you want them adjacent, why not just allocate one array that will hold the items for both? |
| All times are GMT +5.5. The time now is 08:51. |