Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: qsort is crap! Pin
Stephen Hewitt20-May-07 14:16
Stephen Hewitt20-May-07 14:16 
JokeRe: qsort is crap! Pin
Rajesh R Subramanian20-May-07 20:15
professionalRajesh R Subramanian20-May-07 20:15 
GeneralRe: qsort is crap! Pin
Nemanja Trifunovic18-May-07 4:11
Nemanja Trifunovic18-May-07 4:11 
QuestionProblems by printing (number of pages) Pin
Nelek17-May-07 20:44
protectorNelek17-May-07 20:44 
AnswerSolved Pin
Nelek17-May-07 20:49
protectorNelek17-May-07 20:49 
QuestionAbout memory allocations Pin
Kiran Pinjala17-May-07 20:32
Kiran Pinjala17-May-07 20:32 
AnswerRe: About memory allocations Pin
Roger Stoltz17-May-07 22:33
Roger Stoltz17-May-07 22:33 
GeneralRe: About memory allocations Pin
Arman S.17-May-07 22:44
Arman S.17-May-07 22:44 
1. Unless you allocate memory from the heap with calls like new, malloc(...) or similar and assign the returned value to a pointer variable, your data will be allocated on the stack.

And what about global variables? If not created in the heap, they are not in the stack too but in the global data segment.

--
=====
Arman

GeneralRe: About memory allocations Pin
Roger Stoltz17-May-07 23:03
Roger Stoltz17-May-07 23:03 
AnswerRe: About memory allocations Pin
Arman S.17-May-07 22:58
Arman S.17-May-07 22:58 
GeneralRe: About memory allocations Pin
Sethuraman.K18-May-07 0:11
Sethuraman.K18-May-07 0:11 
QuestionDebug Assertion Failure Pin
jannathali17-May-07 20:16
jannathali17-May-07 20:16 
AnswerRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 20:29
Stephen Hewitt17-May-07 20:29 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 20:59
jannathali17-May-07 20:59 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:05
Stephen Hewitt17-May-07 21:05 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 21:14
jannathali17-May-07 21:14 
GeneralRe: Debug Assertion Failure Pin
cp987617-May-07 21:17
cp987617-May-07 21:17 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:18
Stephen Hewitt17-May-07 21:18 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 21:24
jannathali17-May-07 21:24 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:33
Stephen Hewitt17-May-07 21:33 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:23
Stephen Hewitt17-May-07 21:23 
QuestionSorting Error in CListCtrl Pin
pc_dev17-May-07 20:00
pc_dev17-May-07 20:00 
AnswerRe: Sorting Error in CListCtrl Pin
prasad_som17-May-07 21:21
prasad_som17-May-07 21:21 
GeneralRe: Sorting Error in CListCtrl Pin
pc_dev22-May-07 0:46
pc_dev22-May-07 0:46 
QuestionScrollbar range Pin
Aint17-May-07 16:53
Aint17-May-07 16:53 

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.