Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2228 Pin
NewVC++19-Aug-08 2:52
NewVC++19-Aug-08 2:52 
GeneralRe: error C2228 Pin
CPallini19-Aug-08 3:03
mveCPallini19-Aug-08 3:03 
QuestionAutomatic set column width of Table ! Pin
Le@rner19-Aug-08 0:06
Le@rner19-Aug-08 0:06 
RantCrosspost = No help Pin
Rajesh R Subramanian19-Aug-08 0:59
professionalRajesh R Subramanian19-Aug-08 0:59 
GeneralRe: Crosspost = No help Pin
Le@rner19-Aug-08 1:02
Le@rner19-Aug-08 1:02 
QuestionListView-CustomDraw Pin
nitin318-Aug-08 23:45
nitin318-Aug-08 23:45 
QuestionThe difference between... Pin
LiYS18-Aug-08 23:13
LiYS18-Aug-08 23:13 
AnswerRe: The difference between... Pin
Perspx18-Aug-08 23:33
Perspx18-Aug-08 23:33 
*(a + 1) returns a pointer to the 2nd element in a, which here is 2; a + 2 would return the 3rd element in a, which is 3, and so on.

(&a + 1) returns &a, which is a pointer of a, and as pointer arithmetic is used here, +1 increments this address by 20, as a has a size of 20 (5 ints or 5 * 4 bytes), which would point to the next memory block AFTER a. When you print (ptr-1) this decreases the pointer address by 4 (4 bytes to an int), which returns the 5th element in the array, which is 5.

Hope this helps,
--Perspx

"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia

Introduction to Object-Oriented JavaScript

GeneralRe: The difference between... Pin
LiYS18-Aug-08 23:55
LiYS18-Aug-08 23:55 
GeneralRe: The difference between... Pin
oobimoo19-Aug-08 0:38
oobimoo19-Aug-08 0:38 
GeneralRe: The difference between... Pin
toxcct19-Aug-08 2:28
toxcct19-Aug-08 2:28 
QuestionRe: The difference between... Pin
CPallini18-Aug-08 23:42
mveCPallini18-Aug-08 23:42 
Questioninstruction at "0x5f43690b" referenced memory at "0x02470014 Pin
ptr_Electron18-Aug-08 22:14
ptr_Electron18-Aug-08 22:14 
AnswerRe: instruction at "0x5f43690b" referenced memory at "0x02470014 Pin
Stephen Hewitt18-Aug-08 22:26
Stephen Hewitt18-Aug-08 22:26 
AnswerRe: instruction at "0x5f43690b" referenced memory at "0x02470014 Pin
KarstenK18-Aug-08 22:37
mveKarstenK18-Aug-08 22:37 
GeneralRe: instruction at "0x5f43690b" referenced memory at "0x02470014 Pin
Stephen Hewitt18-Aug-08 22:40
Stephen Hewitt18-Aug-08 22:40 
QuestionCListCtrl Pin
AnithaSubramani18-Aug-08 21:36
AnithaSubramani18-Aug-08 21:36 
AnswerRe: CListCtrl Pin
Jijo.Raj18-Aug-08 21:48
Jijo.Raj18-Aug-08 21:48 
AnswerRe: CListCtrl Pin
Hamid_RT19-Aug-08 3:53
Hamid_RT19-Aug-08 3:53 
QuestionI started the thread and want to wait until the thread completes [modified] Pin
ptr_Electron18-Aug-08 20:28
ptr_Electron18-Aug-08 20:28 
AnswerRe: I started the thread and want to wait until the thread completes [modified] Pin
SandipG 18-Aug-08 20:40
SandipG 18-Aug-08 20:40 
GeneralRe: I started the thread and want to wait until the thread completes Pin
ptr_Electron18-Aug-08 20:42
ptr_Electron18-Aug-08 20:42 
GeneralRe: I started the thread and want to wait until the thread completes [modified] Pin
SandipG 18-Aug-08 20:45
SandipG 18-Aug-08 20:45 
AnswerRe: I started the thread and want to wait until the thread completes Pin
Stephen Hewitt18-Aug-08 21:07
Stephen Hewitt18-Aug-08 21:07 
AnswerRe: I started the thread and want to wait until the thread completes Pin
Roger Stoltz18-Aug-08 22:33
Roger Stoltz18-Aug-08 22:33 

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.