<?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: How to Pass Array by Reference?</title>
	<atom:link href="http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Wed, 14 Mar 2012 05:55:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: pratik</title>
		<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/comment-page-1/#comment-7654</link>
		<dc:creator>pratik</dc:creator>
		<pubDate>Sun, 15 Aug 2010 16:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.com/?p=940#comment-7654</guid>
		<description>thanks a lot.</description>
		<content:encoded><![CDATA[<p>thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/comment-page-1/#comment-287</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 03 Dec 2009 04:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.com/?p=940#comment-287</guid>
		<description>My understanding is an array cannot be passed as a value, and thus, it is always passed as a reference.  It may be passed as a pointed as well.

Anyway, a reference &#039;&amp;&#039; isn&#039;t needed, and the subscript value doesn&#039;t matter.

header: function(int array[]);
call: function(array);</description>
		<content:encoded><![CDATA[<p>My understanding is an array cannot be passed as a value, and thus, it is always passed as a reference.  It may be passed as a pointed as well.</p>
<p>Anyway, a reference &#8216;&amp;&#8217; isn&#8217;t needed, and the subscript value doesn&#8217;t matter.</p>
<p>header: function(int array[]);<br />
call: function(array);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/comment-page-1/#comment-286</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.com/?p=940#comment-286</guid>
		<description>Ok i know it will pass by reference, sorry i meant to ask if it is correct i mean if you say [10] or [] isnt it just the address of the first element ?</description>
		<content:encoded><![CDATA[<p>Ok i know it will pass by reference, sorry i meant to ask if it is correct i mean if you say [10] or [] isnt it just the address of the first element ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/comment-page-1/#comment-285</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.com/?p=940#comment-285</guid>
		<description>Would this be passed by reference, i have something similar with bool array i use for states in my program. I have never specified the size of what i pass.

// Receive Array by reference.
void GetArray( int Array[] )
{
}

// Test array by reference.
void CRabbitDlgDlg::TestArray()
{
    // Pass array by reference.
    int Array[10] = { 0 };
    GetArray( Array );
}</description>
		<content:encoded><![CDATA[<p>Would this be passed by reference, i have something similar with bool array i use for states in my program. I have never specified the size of what i pass.</p>
<p>// Receive Array by reference.<br />
void GetArray( int Array[] )<br />
{<br />
}</p>
<p>// Test array by reference.<br />
void CRabbitDlgDlg::TestArray()<br />
{<br />
    // Pass array by reference.<br />
    int Array[10] = { 0 };<br />
    GetArray( Array );<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jijo.Raj</title>
		<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/comment-page-1/#comment-284</link>
		<dc:creator>Jijo.Raj</dc:creator>
		<pubDate>Wed, 15 Apr 2009 04:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.com/?p=940#comment-284</guid>
		<description>Hi Marco,

Array should specify their size for being passed as reference. I&#039;m really sorry that i missed that point. Thanks for pointing it out.

Regards,
Jijo.</description>
		<content:encoded><![CDATA[<p>Hi Marco,</p>
<p>Array should specify their size for being passed as reference. I&#8217;m really sorry that i missed that point. Thanks for pointing it out.</p>
<p>Regards,<br />
Jijo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://weseetips.com/2009/03/15/how-to-pass-array-by-reference/comment-page-1/#comment-283</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Tue, 14 Apr 2009 19:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.com/?p=940#comment-283</guid>
		<description>What about non sized arrays? Like void ( int (&amp;arrays)[]  ); Please specify every details your suggestion. Thansk</description>
		<content:encoded><![CDATA[<p>What about non sized arrays? Like void ( int (&amp;arrays)[]  ); Please specify every details your suggestion. Thansk</p>
]]></content:encoded>
	</item>
</channel>
</rss>

