<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 6.12 &#8212; References vs. pointers, and member selection</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 12:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Vishal Singhal</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-94973</link>
		<dc:creator>Vishal Singhal</dc:creator>
		<pubDate>Mon, 29 Nov 2010 16:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-94973</guid>
		<description>What cannot be done using references in C++. Can we have array of references just like array of pointers?</description>
		<content:encoded><![CDATA[<p>What cannot be done using references in C++. Can we have array of references just like array of pointers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dribbit</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-78650</link>
		<dc:creator>dribbit</dc:creator>
		<pubDate>Sat, 20 Feb 2010 05:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-78650</guid>
		<description>those are assignment statements that would change the value to 6 using either one.</description>
		<content:encoded><![CDATA[<p>those are assignment statements that would change the value to 6 using either one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-77806</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-77806</guid>
		<description>I don&#039;t understand how 

1.*pnValue = 6;
2.rnValue = 6;


if nValue started out as 5.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand how </p>
<p>1.*pnValue = 6;<br />
2.rnValue = 6;</p>
<p>if nValue started out as 5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jb</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-76868</link>
		<dc:creator>jb</dc:creator>
		<pubDate>Thu, 21 Jan 2010 19:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-76868</guid>
		<description>How does one go about changing the size of an existing array? I guess you could just use c realloc, but surely there&#039;s a better way</description>
		<content:encoded><![CDATA[<p>How does one go about changing the size of an existing array? I guess you could just use c realloc, but surely there&#8217;s a better way</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-59746</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 02 May 2009 04:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-59746</guid>
		<description>returnLocal() will return 9, which will be assigned to a.  Then the program will exit.

I am not sure what you are asking.</description>
		<content:encoded><![CDATA[<p>returnLocal() will return 9, which will be assigned to a.  Then the program will exit.</p>
<p>I am not sure what you are asking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LOLY</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-56424</link>
		<dc:creator>LOLY</dc:creator>
		<pubDate>Mon, 06 Apr 2009 16:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-56424</guid>
		<description>just question :

is the code true ?

&lt;code&gt;
int returnLocal(){
    int x=8 ;
    return ++x;
}

int main() {
    int a=returnLocal() ;
    return 0;}
&lt;code&gt;</description>
		<content:encoded><![CDATA[<p>just question :</p>
<p>is the code true ?</p>
<p><code><br />
int returnLocal(){<br />
    int x=8 ;<br />
    return ++x;<br />
}</p>
<p>int main() {<br />
    int a=returnLocal() ;<br />
    return 0;}<br />
</code><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-42013</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 06 Feb 2009 08:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-42013</guid>
		<description>Thanks for visiting!</description>
		<content:encoded><![CDATA[<p>Thanks for visiting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: almalki</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-40762</link>
		<dc:creator>almalki</dc:creator>
		<pubDate>Sun, 01 Feb 2009 20:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-40762</guid>
		<description>thank you alex for evry think about this point .

I hope to be your friend.

sorry, i can not write english 100% , becouse i have mistakes.

thanks for all friends</description>
		<content:encoded><![CDATA[<p>thank you alex for evry think about this point .</p>
<p>I hope to be your friend.</p>
<p>sorry, i can not write english 100% , becouse i have mistakes.</p>
<p>thanks for all friends</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-34213</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 11 Dec 2008 07:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-34213</guid>
		<description>Yes, it is possible, just much more difficult than using vectors.

When you say &quot;dynamically size an array&quot;, do you want to dynamically allocate an array to a particular size, or dynamically resize an existing array?  Either thing is possible, but the latter is much more difficult.

Also, if you&#039;re passing a non-const reference to an array to a function, that means the function is going to modify the array.  There&#039;s no need to return a reference back to the caller because the caller can access the array through it&#039;s original name.</description>
		<content:encoded><![CDATA[<p>Yes, it is possible, just much more difficult than using vectors.</p>
<p>When you say &#8220;dynamically size an array&#8221;, do you want to dynamically allocate an array to a particular size, or dynamically resize an existing array?  Either thing is possible, but the latter is much more difficult.</p>
<p>Also, if you&#8217;re passing a non-const reference to an array to a function, that means the function is going to modify the array.  There&#8217;s no need to return a reference back to the caller because the caller can access the array through it&#8217;s original name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Durant</title>
		<link>http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/comment-page-1/#comment-34160</link>
		<dc:creator>John Durant</dc:creator>
		<pubDate>Wed, 10 Dec 2008 21:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/612-references-vs-pointers-and-member-selection/#comment-34160</guid>
		<description>Here is what I am trying to do:

Dynamically size an array
Pass a reference to that array to a function
Modify the size and or contents of the array
Return the reference to the modified array

I know this is possible using vectors, is it possible to do with arrays? 

Thanks,
John</description>
		<content:encoded><![CDATA[<p>Here is what I am trying to do:</p>
<p>Dynamically size an array<br />
Pass a reference to that array to a function<br />
Modify the size and or contents of the array<br />
Return the reference to the modified array</p>
<p>I know this is possible using vectors, is it possible to do with arrays? </p>
<p>Thanks,<br />
John</p>
]]></content:encoded>
	</item>
</channel>
</rss>

