Skip to main content
โœ๏ธ Code CompletionC+ C++ Medium+20 XP

Range-Based For

Complete the range-based for loop.

โœ๏ธ Fill in the blank
vector<int> nums = {1, 2, 3};
for (int n ___ nums) {
    cout << n << " ";
}

โœ๏ธ Type the missing code:

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep