   The way memory is allocated...
  If I allocate memory as such...int num1 = new int(1);int num2 = new int(5);int num3 = new int(8);  Is this memory guaranteed to be allocated in a row, as in an array? I''m trying to figure out pointer arithmetic and I''m wondering if this is what''s going wrong, or my pointer arithmetic. 
  The addresses returned by each new expression will probably not be contiguous. If you want an array use new int[3]. ;  Different languages, compilers, computers and OS''s will do memory allocations in different ways. The best would be to always assume that you don''t know how it is allocated . If you want seperate arrays in continuous memory, allocate a single array like SiCrane suggested, and then use either pointers or aliases to access three seperate arrays inside that memory space.Regards,ZX 