| | |
memory allocation doubt
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2008
Posts: 61
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 |
api array arrays based binary c++ c/c++ calculator char char* class classes code coding compile console conversion convert count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game generator givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






