473,509 Members | 6,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Contiguous Memory allocation

4 New Member
Hello!

What is meant by contiguous memory allocation in C++?
Dec 31 '07 #1
5 6119
Andr3w
42 New Member
Maybe this will clear you mind on what contiguous memory allocation is in general, it's not a specific topic only on C++

Lecture notes
Dec 31 '07 #2
weaknessforcats
9,208 Recognized Expert Moderator Expert
That link pertains to processes.

Contiguous memory allocation means the allocation is unbroken, that is, it is not a series of random items connected in a way such as you might find using a linked list.

Arrays in C and C++ use contiguous memory allocation in order that pointer arithmetic can be used to acess the various elements.
Jan 1 '08 #3
Andr3w
42 New Member
it has a section in the start that says all about contiguous memory allocation, though ;)
Jan 2 '08 #4
weaknessforcats
9,208 Recognized Expert Moderator Expert
The lecture notes are about processes.

I was referring to contiguous memory allocation within a process as opposed to a linked list approach.
Jan 2 '08 #5
Andr3w
42 New Member
I see, but as I said I think it's a general topic in all languages and applications of computers. That's why I said too see the general basic-low level information that are mentioned in that lecture notes. Anyway, good point ;). Sorry sicarie I'll be carefull next time ;)
Jan 2 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5235
by: Gary Kuehn | last post by:
Is Reserve guaranteed to allocate contiguous memory? How safe is the following: vector<char> vbuff; int sz = numeric_limits<short int>::max();
9
7044
by: Olumide | last post by:
Thats the question. I know about virtual memory, and the MMU. I just wonder if array members guaranteed to be contiguous in physical memory (and if so, why). Thanks, Olumide
38
5081
by: Peteroid | last post by:
I looked at the addresses in an 'array<>' during debug and noticed that the addresses were contiguous. Is this guaranteed, or just something it does if it can? PS = VS C++.NET 2005 Express...
22
3072
by: divya_rathore_ | last post by:
No pun intended in the subject :) Is dynamically allocated memory contiguous in C++? In C? Deails would be appreciated. warm regards, Divya Rathore (remove underscores for email ID)
22
2596
by: Jack | last post by:
The following code can be compiled. But When I run it, it causes "Segmentation fault". int main(){ char **c1; *c1 = "HOW"; // LINE1 ++(*c1); *c1 = "ARE";
1
2374
by: kingstonsmiler | last post by:
Hi, I want to allocate memory dynamically and the memory should be contiguous. My requirement is as follows for (n) { allocate memory dynamically of size 10; some processing;...
24
19037
by: Ken | last post by:
In C programming, I want to know in what situations we should use static memory allocation instead of dynamic memory allocation. My understanding is that static memory allocation like using array...
1
7945
by: Peterwkc | last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back. By the way, my problem is like this i the first program was...
7
3878
by: nw | last post by:
Hi, We've been having a discussion at work and I'm wondering if anyone here would care to offer an opinion or alternative solution. Aparently in the C programming HPC community it is common to...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.