| | |
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 based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings struct temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






