Similar to C, C++ objects can be allocated in three ways:
On the stack (automatic storage)
Fixed address (static storage)
On the free store (on the heap, dynamic storage)
Complementing malloc() and free() in C, C++ uses new() and delete()
Technorati Tags: C++
del.icio.us Tags: C++
No comments:
Post a Comment