- A (a) (1) → (2) → (3) → (4)
- B (b) (3) → (4) → (1) → (2)
- C (c) (1) → (3) → (4) → (2)
- D (d) (2) → (1) → (4) → (3)
⚠ Report ✓ Question Verified Copy Link
Consider the following program segment to swap two variables a and b using a third variable. The statements are jumbled. Arrange them in the correct order to perform the swap successfully:
void swap(int a, int b) { a = b; // (1) b = t; // (2) int t = 0; // (3) t = a; // (4) }
Learn More MCQ Questions from ICSE Computer Application - Class - X ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER