Wednesday, March 17, 2010

casting

apparently in C, chars are 'upcast' in order to be used.

another interesting thing was how a logical and (&&) and or (||) were represented: think of a serial circuit with 2 switches - both switches must be ON in order for the circuit to power the load; for logical 'or', we can picture the 2 switches in parallel along with the load in serial - as long as one is true, or ON, the load is powered.

No comments:

Post a Comment