<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Call by Value vs. Call by Reference]]></title><description><![CDATA[<p>Es ist nicht spezifiert, wie groß der Datentyp <code>int</code> ist. D.h. ein Integer könnte auch 8 Bytes groß sein, lieg ich da richtig?</p>
<p>D.h. es macht definitiv Sinn solch eine Struktur per Referenz zu übergeben, weil ein Pointer auf einem x64-System 8 Bytes groß ist, richtig?</p>
<pre><code class="language-cpp">struct fx{
    int x, y;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/340292/call-by-value-vs-call-by-reference</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 05:38:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/340292.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Oct 2016 11:34:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 11:34:06 GMT]]></title><description><![CDATA[<p>Es ist nicht spezifiert, wie groß der Datentyp <code>int</code> ist. D.h. ein Integer könnte auch 8 Bytes groß sein, lieg ich da richtig?</p>
<p>D.h. es macht definitiv Sinn solch eine Struktur per Referenz zu übergeben, weil ein Pointer auf einem x64-System 8 Bytes groß ist, richtig?</p>
<pre><code class="language-cpp">struct fx{
    int x, y;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2513430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513430</guid><dc:creator><![CDATA[schneider]]></dc:creator><pubDate>Sun, 30 Oct 2016 11:34:06 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 12:40:36 GMT]]></title><description><![CDATA[<p>Nein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513440</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Sun, 30 Oct 2016 12:40:36 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 12:50:31 GMT]]></title><description><![CDATA[<p>DirkB schrieb:</p>
<blockquote>
<p>Nein.</p>
</blockquote>
<p>Also angenommen ein <code>int</code> hat 8 Bytes, zwei somit 16 Bytes. Und einen Pointer/eine Referenz 8 Bytes. Dann macht das sehr wohl Sinn?</p>
<p>Liefere bitte etwas mehr Hintergrund.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513443</guid><dc:creator><![CDATA[schneider]]></dc:creator><pubDate>Sun, 30 Oct 2016 12:50:31 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 12:56:56 GMT]]></title><description><![CDATA[<p>Es ist spezifiziert, wie groß ein Datentyp mindestens sein muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513445</guid><dc:creator><![CDATA[HarteWare]]></dc:creator><pubDate>Sun, 30 Oct 2016 12:56:56 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 13:04:42 GMT]]></title><description><![CDATA[<p>Sowohl unter Linux als auch Windows ist int 32 bit groß. Dabei spielt es keine Rolle, ob das OS 32 oder 64 Bit hat.</p>
<p><a href="https://msdn.microsoft.com/en-us/library/s3f49ktz.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/s3f49ktz.aspx</a></p>
<p>Einen Unterschied gibt es bei long. Unter Windows ist der selbst unter Windows-64 32 Bit groß. Unter 64-Bit-Linux ist er 64 Bit groß.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513447</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 30 Oct 2016 13:04:42 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 13:17:39 GMT]]></title><description><![CDATA[<p>schneider schrieb:</p>
<blockquote>
<p>Also angenommen ein <code>int</code> hat 8 Bytes, zwei somit 16 Bytes. Und einen Pointer/eine Referenz 8 Bytes. Dann macht das sehr wohl Sinn?</p>
</blockquote>
<p>Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513450</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Sun, 30 Oct 2016 13:17:39 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 13:39:08 GMT]]></title><description><![CDATA[<p>ShadowClone schrieb:</p>
<blockquote>
<p>Einen Unterschied gibt es bei long. [...] Unter 64-Bit-Linux ist er 64 Bit groß.</p>
</blockquote>
<p>Kommt darauf an. Im Fall von x32-ABI hast du unrecht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513453</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Sun, 30 Oct 2016 13:39:08 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 13:59:25 GMT]]></title><description><![CDATA[<p>Ist es besser für alles außer arithmetic types eine (const)-Referenz zu nehmen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513457</guid><dc:creator><![CDATA[schneider]]></dc:creator><pubDate>Sun, 30 Oct 2016 13:59:25 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 14:22:46 GMT]]></title><description><![CDATA[<p>schneider schrieb:</p>
<blockquote>
<p>Ist es besser für alles außer arithmetic types eine (const)-Referenz zu nehmen?</p>
</blockquote>
<p>Kann man im Allgemeinen nicht sagen. Muss man profilen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513460</guid><dc:creator><![CDATA[Biolunar]]></dc:creator><pubDate>Sun, 30 Oct 2016 14:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 16:05:34 GMT]]></title><description><![CDATA[<p>camper schrieb:</p>
<blockquote>
<p>ShadowClone schrieb:</p>
<blockquote>
<p>Einen Unterschied gibt es bei long. [...] Unter 64-Bit-Linux ist er 64 Bit groß.</p>
</blockquote>
<p>Kommt darauf an. Im Fall von x32-ABI hast du unrecht.</p>
</blockquote>
<p>Gut, das ist ein Spezialfall.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513478</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 30 Oct 2016 16:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to Call by Value vs. Call by Reference on Sun, 30 Oct 2016 18:42:08 GMT]]></title><description><![CDATA[<p>schneider schrieb:</p>
<blockquote>
<p>Ist es besser für alles außer arithmetic types eine (const)-Referenz zu nehmen?</p>
</blockquote>
<p>Schon mal nicht, wenn 16 Byte per Register übergeben werden können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2513511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2513511</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 30 Oct 2016 18:42:08 GMT</pubDate></item></channel></rss>