Adrian Posted July 15, 2002 Posted July 15, 2002 are u ATIPROCHARGEDGM on LS1.com?? im ELS1 from the forums found this here: http://www.ls1.com/forums/showthread.php?threadid=127788
PlanetCpp Posted July 15, 2002 Posted July 15, 2002 first off the !!9 = 1 . ! (not operator) returns 0 if the value is non-zero, so !9 = 0 !!9 = !0 = 1, or the same as saying if not 9 = 0 in the possible answers of 0 and 1, then not not 9 must equal 1. !!!9 would then = 0 and !!!!9 = 1, and so on. the ~ (tilde) operator is a bit-wise one's complement, which is very easy just invert all the bits !0001100 = 1110011 so lets assume you have a one byte value, which when you said (char), makes it. it equals one (0000 0001) now if you perform a one's complement on that number you should get 1111 1110 which would be either 254 or -2 , negative numbers in binary or such a pain you have to know when your dealing with them in assembly, c++ and other high languages take care of this for you, thats why you have to specify signed/unsigned if you need the extra space cause in signed variables the last bit is needed as the sign bit, 1 = negative, 0 = positive.
P_Rog Posted July 15, 2002 Posted July 15, 2002 i was wondering why a link to this place was on the corral.net forums...but im glad i saw it.
fafalone Posted July 15, 2002 Posted July 15, 2002 Adrian is very active on that forum and offered to post on it on behalf of this site. We very much appreciate it
Doc Posted July 16, 2002 Author Posted July 16, 2002 What about this thread on corral ? Give me the link.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now