Re: dumb C question (part 2)

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri, 20 Apr 2001, Euman wrote:

> Another dumb C translation question >

> heres where I get confused
> 
> // in C
> 
> s = !s;
> 
> -- in Euphoria
> 
> would it be:
> 
> if not s then 
> or 
> s = not s (hehe just joking)

Yes. 
These give the same results:

// C 
#include <stdio.h>

int main()
 {
 int s;
 s = 3;
 s = !s;
 printf("%d",s);
 }

-- Euphoria
atom s
s = 3
s = not 3
printf(1,"%d",s)

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu