You are here:

C++/data structures

Advertisement


Question
hello
i actually need to make a project in which i have to make a programme in c++ in which i have to arrange free memory in a linked list.please give me some idea about this urgently

Answer
A good place to learn about a simple way of doing this is to read the section on implementing malloc() and free() in the timeless classic 'The C Programming Language' (Kernighan and Ritchie).

In Chapter 8 of the book, K&R present a complete, working implementation of dynamic memory allocation in less than five pages of lucid code and explanation.

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


vijayan

Expertise

my primary areas of interest are generic and template metaprogramming, STL, algorithms, design patterns and c++09. i would not answer questions about gui and web programming.

Experience

over 15 years

Education/Credentials
post graduate engineer

©2012 About.com, a part of The New York Times Company. All rights reserved.