Short Circuiting (Programming)

By: Dusty Arlia
Published on Sunday, September 8, 2013, 04:07 PM
Last Updated on Wednesday, July 15, 2015 at 12:54 PM
Total Updates: 2

An example of short circuiting in programming is when you are using a logical AND operator, if the first operand (the one on the left) evaluates to false, the whole expression evaluates to false (the second operand on the right is never evaluated). The reason why it is called short circuiting, is because of the fact that the second operand is never evaluated. This reduces processing.

Comments:

Ad:

Ad: