| | |
memory allocation doubt
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2008
Posts: 64
Reputation:
Solved Threads: 1
0
#3 Oct 6th, 2009
Definitely read the links provided above but the short answer to your question is that pointers point to data stored on the stack and everything else is on the program stack. But remember, the pointer is on the stack and the data it points to is on the heap. For a brief pointer overview see this site
http://coutblog.blogspot.com/2009/10...explained.html
For beginner programmers the only time they really need to worry about this is when they are using pointers.
http://coutblog.blogspot.com/2009/10...explained.html
For beginner programmers the only time they really need to worry about this is when they are using pointers.
![]() |
Similar Threads
- regarding dynamic memory allocation (C)
- Memory Leak? (C)
- why memory allocation (C)
- memory allocation ptr to array? how? (C)
- Why use Dynamic and Static Memory Allocation... (C)
- memory allocation (C)
- Dynamic memory allocation homework (C++)
- How to use alloc's memory allocation functions? (C)
Other Threads in the C++ Forum
- Previous Thread: Creating header file
- Next Thread: Replacing vector val and delaration help.
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






