|
Re: Weird problem with if statements
You said you're used to working in Java but Java treats = as assignment and == as equality so I'm not sure what's going on there.
As to cascading operators (a = b = c = 1), according to the ISO C standard that will not work. However, our compiler isn't a strict C compiler. For instance, you can use C++ style comments (//comment) and it will work fine even though it's not legal C. It's not particularly important but is useful to know.
Matt
|