Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How we can monitor wether the system time is changed manualy? Pin
Neville Franks18-Nov-04 23:40
Neville Franks18-Nov-04 23:40 
GeneralVisual Studio question Pin
glowskull0318-Nov-04 17:23
glowskull0318-Nov-04 17:23 
GeneralRe: Visual Studio question Pin
bryce18-Nov-04 18:38
bryce18-Nov-04 18:38 
GeneralRe: Visual Studio question Pin
David Crow19-Nov-04 4:12
David Crow19-Nov-04 4:12 
GeneralSocket communication problem between Windows 2003 and Windows 2000 Pin
fpdeguzman18-Nov-04 17:21
fpdeguzman18-Nov-04 17:21 
GeneralRe: Socket communication problem between Windows 2003 and Windows 2000 Pin
bryce18-Nov-04 18:43
bryce18-Nov-04 18:43 
GeneralAdding contols to tree view -,please help!!! Pin
ledallam18-Nov-04 17:08
ledallam18-Nov-04 17:08 
GeneralC memory map question. Pin
Link260018-Nov-04 16:40
Link260018-Nov-04 16:40 
There are two descriptions about the C memory map, which makes me confused. I wonder which one is the correct memory map in C. Should the stack and heap come on top of the program codes? Or should the program codes and global variables on top?

Map 1 is correct? or Map 2?


Thanks


/////////////////////////////////////////////////

--- Map 1 ---

Described in "C - The Complete
Reference" by Herbert Schildt

+-----------+
| Stack
| |
| v
+-----------+
| ^
| |
| Heap
+-----------+
| Global
| variables
+-----------+
|
| Program
| codes
|
+-----------+

/////////////////////////////////////////////////

--- Map 2 ---

Described in "Mastering Algorithms
with C" by Kyle Loudon

+-----------+
|
| Program
| codes
|
+-----------+
| Global
| variables
+-----------+
| stack
| |
| v
+-----------+
| ^
| |
| Heap
+-----------+

////////////////////////////////////////////////

-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
GeneralRe: C memory map question. Pin
markkuk19-Nov-04 1:42
markkuk19-Nov-04 1:42 
GeneralFiles ordering Pin
LiYS18-Nov-04 16:40
LiYS18-Nov-04 16:40 
GeneralRe: Files ordering Pin
David Crow19-Nov-04 4:16
David Crow19-Nov-04 4:16 
QuestionHow to perform carriage return by coding,not by clicking the Enter key? Pin
momer18-Nov-04 16:00
momer18-Nov-04 16:00 
AnswerRe: How to perform carriage return by coding,not by clicking the Enter key? Pin
LiYS18-Nov-04 18:57
LiYS18-Nov-04 18:57 
AnswerRe: How to perform carriage return by coding,not by clicking the Enter key? Pin
David Crow19-Nov-04 4:21
David Crow19-Nov-04 4:21 
Generallinker error for extern function Pin
Ann6618-Nov-04 12:47
sussAnn6618-Nov-04 12:47 
GeneralRe: linker error for extern function Pin
bryce18-Nov-04 13:50
bryce18-Nov-04 13:50 
GeneralRe: linker error for extern function Pin
Ann6618-Nov-04 14:02
sussAnn6618-Nov-04 14:02 
GeneralRe: linker error for extern function Pin
bryce18-Nov-04 14:32
bryce18-Nov-04 14:32 
GeneralRe: linker error for extern function Pin
bmzhao18-Nov-04 16:08
bmzhao18-Nov-04 16:08 
Generaldon´t know, how to say it short :( Pin
LacrimaMosa18-Nov-04 12:31
LacrimaMosa18-Nov-04 12:31 
GeneralRe: don´t know, how to say it short :( Pin
bryce18-Nov-04 13:49
bryce18-Nov-04 13:49 
GeneralRe: don´t know, how to say it short :( Pin
LacrimaMosa19-Nov-04 6:15
LacrimaMosa19-Nov-04 6:15 
QuestionHow to detect a system shutdown? Pin
heman15418-Nov-04 10:49
heman15418-Nov-04 10:49 
AnswerRe: How to detect a system shutdown? Pin
22491718-Nov-04 19:24
22491718-Nov-04 19:24 
GeneralRe: How to detect a system shutdown? Pin
heman15419-Nov-04 3:26
heman15419-Nov-04 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.