Find the error in the following code.
Code: int i = 1; while(i <= 5) { printf(“%d “, i); i–; } Answer: The code will cause an infinite loop because the condition i <= 5 is always true, and i– causes i to decrease, not increase. Since i starts at 1 and keeps decreasing, it will never reach a point where it … Read more