[Dev-C++] dynamic or stack allocation ...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Khalid El-K. <kha...@ho...> - 2003-04-03 01:05:34
|
Hi fellows, right now i know that memory in the stack gets allocated for once during the start-up of the programm, and dynamically allocated memory gets allocated while the programm is running. stack memory is faster at execution. dynamic memory is slower (the time consumed by malloc/free) but ... I want to know when exactly should i use stack memory and when exactly should i use dynamic memory ? thanx in advance Regards, Khalid Al-Kary _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |