<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'problem with static...' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'problem with static...' posted on the 'ColdFusion' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 11:51:01 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 11:51:01 -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>problem with static...</title>
      <link>http://www.programmersheaven.com/mb/ColdFusion/393696/393696/problem-with-static/</link>
      <description>I have a code written as follows.&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;unistd.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
       static int i;&lt;br /&gt;
       printf("%d", &amp;amp;i);&lt;br /&gt;
       sleep(10);&lt;br /&gt;
}&lt;br /&gt;
I compile the code and run the ./a.out in background(&amp;amp;)&lt;br /&gt;
and I run the same ./a.out again. The value of the address&lt;br /&gt;
of i is same. can any one explain me why. I think two are different processes and they should have their separate data segment.&lt;br /&gt;
Thanks In advance.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ColdFusion/393696/393696/problem-with-static/</guid>
      <pubDate>Wed, 15 Jul 2009 02:05:56 -0700</pubDate>
      <category>ColdFusion</category>
    </item>
    <item>
      <title>Re: problem with static...</title>
      <link>http://www.programmersheaven.com/mb/ColdFusion/393696/428006/re-problem-with-static/#428006</link>
      <description>I think you should turn to a professional.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ColdFusion/393696/428006/re-problem-with-static/#428006</guid>
      <pubDate>Tue, 27 Mar 2012 00:23:53 -0700</pubDate>
      <category>ColdFusion</category>
    </item>
    <item>
      <title>Re: problem with static...</title>
      <link>http://www.programmersheaven.com/mb/ColdFusion/393696/428007/re-problem-with-static/#428007</link>
      <description>I think you should turn to a professional.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ColdFusion/393696/428007/re-problem-with-static/#428007</guid>
      <pubDate>Tue, 27 Mar 2012 00:25:39 -0700</pubDate>
      <category>ColdFusion</category>
    </item>
  </channel>
</rss>