skip to main
|
skip to sidebar
C++ Trivia
Saturday, April 24, 2010
Arrays and Pointers
The following code is valid:
int *pMyInt = new int[10];
9[pMyInt] = 1;
Because, pMyInt[9] equals *(pMyInt + 9) which equals *(9 + pMyInt) which equals 9[pMyInt].
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Deals
Amazon.com Widgets
My Workspace
19"-23"-19" with Tritton See2
Bloomberg Message Team
Last Row: Kwok, Marcos, Chintan, Jonathan, Steve, Rakan, Alex, Joel, Sam, Hector, Adam, Zak, Mike, Me, Middle Row: Linda, Di, Sid, Jun, Joe, Paul, Suganya, Steve, James, Hunter, Scott, Todd, Front Row: Venkat, Noah, Matt, Carilda, Gary
Dialogic Computer Telephony Team
Glenn, Ray, Naum, Larry, Lisa, Me, Jim, Hyung, John, Frank
Search This Blog
Followers
Blog Archive
►
2017
(260)
►
December
(40)
►
November
(40)
►
October
(50)
►
September
(40)
►
August
(40)
►
July
(50)
►
2014
(1)
►
November
(1)
►
2011
(1)
►
August
(1)
▼
2010
(718)
►
December
(249)
►
November
(255)
►
October
(62)
►
September
(31)
►
August
(16)
►
July
(16)
►
June
(15)
►
May
(15)
▼
April
(15)
endl
snprintf()
Typedefs
Arrays and Pointers
Nonvirtual Interface (NVI)
Compiler Declared Operators
Deques
Inline Functions
Inline Functions
Inline Functions
Source Files Ending in Newline
Vectors
Returning a Pointer to Local Variable from a Function
Static Variables
Visitor Design Pattern
►
March
(15)
►
February
(14)
►
January
(15)
►
2009
(25)
►
December
(15)
►
November
(10)
About Me
C++ Trivia
View my complete profile
No comments:
Post a Comment