Memory

This is a discussion on Memory within the C++ Programming forums, part of the General Programming Boards category; How much memory does 'int [63][205]' use? and how much memory does 'int[100][63][205]' use?...

  1. #1
    Frustrated Programmer :( phantom's Avatar
    Join Date
    Sep 2001
    Posts
    163

    Memory

    How much memory does 'int [63][205]' use? and how much memory does 'int[100][63][205]' use?
    My site to register for all my other websites!
    'Clifton Bazaar'

  2. #2
    Funniest man in this seat minesweeper's Avatar
    Join Date
    Mar 2002
    Posts
    801
    63 * 205 * 4 bytes

    and

    100 * 63 * 205 * 4 bytes

    You can always use sizeof() to get the number of bytes used.

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    i seem to recall a thread about not using up so much memory. its not an efficient way to parse large amounts of data. rather, you should do a small sized block at a time and then put it somewhere else where it wont drain your computers performance.

    just thought id warn you.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 01-13-2008, 01:14 AM
  2. Question regarding Memory Leak
    By clegs in forum C++ Programming
    Replies: 29
    Last Post: 12-07-2007, 12:57 AM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  4. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 01:15 AM
  5. What's the best memory (RAM) type?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 12-14-2001, 11:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21