<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Query About Passing values' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Query About Passing values' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 10:13:24 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 10:13:24 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Query About Passing values</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430307/430307/query-about-passing-values/</link>
      <description>Hi..can anybody tel me that how the output would be changed for same input depending upon the method of passing values/reference/name etc.to a function?For example consider the folloing code&lt;br /&gt;
&lt;br /&gt;
procedure exchange(A:integer,B:integer)&lt;br /&gt;
 temp:integer;&lt;br /&gt;
begin&lt;br /&gt;
 temp:=A;&lt;br /&gt;
 A:=B;&lt;br /&gt;
 B:=A;&lt;br /&gt;
end&lt;br /&gt;
begin&lt;br /&gt;
 M:=2;X[M]=4;&lt;br /&gt;
 exchange(M,X[M]);&lt;br /&gt;
 write(M,X[2]);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
what is the output for the above code when&lt;br /&gt;
1)If the parameters are passed by value&lt;br /&gt;
2)If the parameters are passed by reference&lt;br /&gt;
3)If the parameters are passed by name&lt;br /&gt;
&lt;br /&gt;
Please help me to find out this...</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430307/430307/query-about-passing-values/</guid>
      <pubDate>Mon, 19 Nov 2012 00:17:02 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>