What is the value of the var
variable after the execution of the following snippet of code:
int var = 2; var = 4 var = var + 6; var = var + var;
20
24
22
10
Explanation & Hints:
Let’s analyze the code snippet and the operations performed on the variable
Therefore, after the execution of the code snippet, the value of |