<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Struct array' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Struct array' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 18:53:55 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 18:53:55 -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>Struct array</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/335280/335280/struct-array/</link>
      <description>hi,&lt;br /&gt;
 can i paas 'struct array' through any function.....let suppose as&lt;br /&gt;
&lt;br /&gt;
      stuct entry{int id,age;}data[10];  and function is like this&lt;br /&gt;
      void check(int d[10]);&lt;br /&gt;
      if it is possible..then......how can?....please teach by syntax &lt;br /&gt;
      in term of 'c'. &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/335280/335280/struct-array/</guid>
      <pubDate>Sun, 23 Apr 2006 09:26:52 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Struct array</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/335280/335318/re-struct-array/#335318</link>
      <description>: hi,&lt;br /&gt;
:  can i paas 'struct array' through any function.....let suppose as&lt;br /&gt;
: &lt;br /&gt;
:       struct entry{int id,age;}data[10];  and function is like this&lt;br /&gt;
:       void check(int d[10]);&lt;br /&gt;
:       if it is possible..then......how can?....please teach by syntax &lt;br /&gt;
:       in term of 'c'. &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;span style="color: Purple;"&gt;&lt;br /&gt;
of course u can pass a struct array through a function parameter. but as other arrays, that must be passed as reference.&lt;br /&gt;
the code u provided cannot take a struct array as its parameter since the parameter is declared to take an interger array of size 10. u need to modify the function declaration in order to accept the struct array as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Black;"&gt;void check (struct entry array[10]);&lt;/span&gt;&lt;/strong&gt;[/black]&lt;br /&gt;
&lt;br /&gt;
then pass the &lt;span style="color: Blue;"&gt;data&lt;/span&gt; array as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Black;"&gt;check (data);&lt;/span&gt;&lt;/strong&gt;[/black]&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;span style="color: Purple;"&gt;~Donotalo()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/335280/335318/re-struct-array/#335318</guid>
      <pubDate>Sun, 23 Apr 2006 22:02:28 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>