in reply to Re: Map a string to an array
in thread Map a string to an array
What would be the case if this is a 2d array? i.e, the map is from a string to 2d array.
Is there an easy way to print the content?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Map a string to an array
by runrig (Abbot) on Nov 01, 2013 at 22:47 UTC | |
| [reply] [d/l] |
|
Re^3: Map a string to an array
by AnomalousMonk (Archbishop) on Nov 02, 2013 at 08:49 UTC | |
Further to runrig's replies:
| [reply] [d/l] |
by BrowserUk (Patriarch) on Nov 02, 2013 at 10:23 UTC | |
(And BTW, congratulations on being able to work with a system having at least 128 Terabytes of system RAM — or do I misinterpret the reference address of 0x7ffafc013bf8?) With virtual memory, heap does not have to be contiguous. This C program allocates a single page of memory starting at the 4GB base address and then doubles the base address each time until it fails:
I only have 8GB of ram, but the last time the above succeeds:
It allocated a page at a base address that is 4096 GB. At that point the process is only using 668k of memory. 4096GB is 2^42 which reflects that my 64-bit processor actually only has a 44-bit virtual address space. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |