To determine the output of the program, let's go through the code step by step:
- Initialize the variables
i
, j
, k
, and l
to 0.
- Assign the value of
l
to k
and then increment the value of l
by 1. So, k
becomes 0 and l
becomes 1.
- Increment the value of
k
by 1 and assign the result to j
. So, j
becomes 1 and k
becomes 1.
- Assign the value of
j
to i
and then increment the value of j
by 1. So, i
becomes 1 and j
becomes 2.
- Print the value of
i
which is 1.
Therefore, the output of the program will be 1.
Hence, the correct answer is option A.