Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c++ help

Name: Anonymous 2007-10-26 18:20

ok can you solve this?

find the value of val

bool val;
i = 0, j = -1, k = 1
val = (j*k && (!i||i-j-k)) where 

Name: Anonymous 2007-10-26 18:22

0?

Name: Anonymous 2007-10-26 18:33

>>2
Oh shit, didn't notice the !

Anyways,
val = ( (-1) * (1) && ( !(0) || (0)-(-1)-(1) ) )
val = ( -1 && ( 1 || 0 ) )
val = ( -1 && 1 )
val = -1
val = 0?

Does -1 just change to 0? Not much experience with logic in C++.

Name: Anonymous 2007-10-26 18:39

>>7
Wut? Where the fuck did you learn logic from?
Also, >>2,6,8 samefag

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List