RE: A quick c question

  • From: Daniel Dalton <d.dalton@xxxxxxxxxxxx>
  • To: blind programming <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 14 Mar 2008 08:19:31 +1100 (EST)

Hi Sina,

On Wed, 12 Mar 2008, Sina Bahram wrote:

I believe that is implementation specific; hence, the EOF constant is
available as a #define in most systems.

So on a linux box (debian) -1 sounds ok?
What does -1 mean in C?
false?
if I write:
int c =-1;
if (!c)
{...}
Will ... get executed?
Or is 0 false and all other negative numbers and positive numbers are true?

--
Daniel Dalton

http://members.iinet.net.au/~ddalton/
d.dalton@xxxxxxxxxxxx
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: