Mailinglist Archive: opensuse (1839 mails)

< Previous Next >
Re: [opensuse] C help - compile errors on simple function - need help
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 22 Sep 2010 20:29:30 -0500
  • Message-id: <4C9AAD7A.5020504@xxxxxxxxxxxxxxxxxx>
On 09/22/2010 08:24 PM, Nick LeRoy wrote:
Here, however, you declare a *new* set of variables with a more limited scope
*that happen to have the same names*. The scope of these variables is only
within the enclosing braces "{" and "}". Thus, after the final "}", your
newly scoped variables don't exist. From the compiler's point of view, your
code created some new variables, initialized them, and then never used them.
Hense the warnings. The "double Pb = arry[3];" declares the new variable;
which is most certainly wrong.


(smacks self)

Thank you!

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >