Let us consider the first example as illustrated in 1. In this example, a is an array, k is an integer, and i is a local variable. The code searches for the value of k in the array a. This code does work, but only when short circuited boolean evaluation is supported. Otherwise, this code is incorrect!