Click here to Skip to main content
15,918,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failed! Pin
Rajesh R Subramanian9-Jun-09 22:34
professionalRajesh R Subramanian9-Jun-09 22:34 
Questioncompiler error Pin
ali kanju9-Jun-09 18:58
ali kanju9-Jun-09 18:58 
AnswerRe: compiler error Pin
Chandrasekharan P9-Jun-09 19:16
Chandrasekharan P9-Jun-09 19:16 
GeneralRe: compiler error Pin
ali kanju9-Jun-09 19:39
ali kanju9-Jun-09 19:39 
GeneralRe: compiler error Pin
Chandrasekharan P9-Jun-09 19:48
Chandrasekharan P9-Jun-09 19:48 
GeneralRe: compiler error Pin
ali kanju9-Jun-09 20:16
ali kanju9-Jun-09 20:16 
Questionfree and delete[] Pin
hawk23reddy9-Jun-09 17:28
hawk23reddy9-Jun-09 17:28 
AnswerRe: free and delete[] Pin
«_Superman_»9-Jun-09 17:55
professional«_Superman_»9-Jun-09 17:55 
1. The OS keeps track of all allocated blocks on the heap. So it knows about the total size, number of objects etc. This information is used to free the heap.

2. a is a reference to the variable i.
Even though references were introduced in C++, internally it is still implemented as a pointer.
So int &a = i; means pointer a that holds the address of variable i.
a = 30; means put the value 30 into the address where a is pointing to.
Since i is the variable assigned to that address, its value becomes 30.

«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: free and delete[] Pin
N a v a n e e t h9-Jun-09 18:02
N a v a n e e t h9-Jun-09 18:02 
GeneralRe: free and delete[] Pin
«_Superman_»9-Jun-09 18:05
professional«_Superman_»9-Jun-09 18:05 
GeneralRe: free and delete[] Pin
Stuart Dootson9-Jun-09 22:37
professionalStuart Dootson9-Jun-09 22:37 
GeneralRe: free and delete[] Pin
N a v a n e e t h10-Jun-09 0:01
N a v a n e e t h10-Jun-09 0:01 
GeneralRe: free and delete[] Pin
Stuart Dootson10-Jun-09 0:13
professionalStuart Dootson10-Jun-09 0:13 
GeneralRe: free and delete[] Pin
N a v a n e e t h10-Jun-09 0:21
N a v a n e e t h10-Jun-09 0:21 
GeneralRe: free and delete[] Pin
Randor 11-Jun-09 14:12
professional Randor 11-Jun-09 14:12 
AnswerRe: free and delete[] Pin
N a v a n e e t h9-Jun-09 17:58
N a v a n e e t h9-Jun-09 17:58 
GeneralRe: free and delete[] Pin
chirag_chauhan9-Jun-09 19:33
chirag_chauhan9-Jun-09 19:33 
QuestionDecoding(decompressing) an image Pin
Bhavani_mnnit9-Jun-09 15:49
Bhavani_mnnit9-Jun-09 15:49 
AnswerRe: Decoding(decompressing) an image Pin
«_Superman_»9-Jun-09 16:08
professional«_Superman_»9-Jun-09 16:08 
GeneralRe: Decoding(decompressing) an image Pin
Bhavani_mnnit9-Jun-09 20:39
Bhavani_mnnit9-Jun-09 20:39 
QuestionSTRRET Structure Question Pin
nm_1149-Jun-09 14:02
nm_1149-Jun-09 14:02 
GeneralRe: STRRET Structure Question Pin
Michael Dunn9-Jun-09 16:09
sitebuilderMichael Dunn9-Jun-09 16:09 
AnswerRe: STRRET Structure Question Pin
«_Superman_»9-Jun-09 16:16
professional«_Superman_»9-Jun-09 16:16 
GeneralRe: STRRET Structure Question Pin
nm_1149-Jun-09 17:22
nm_1149-Jun-09 17:22 
GeneralRe: STRRET Structure Question Pin
«_Superman_»9-Jun-09 17:24
professional«_Superman_»9-Jun-09 17:24 

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.