LessonAbout 5 minLesson languageEnglishதமிழ் (Tamil)हिन्दी (Hindi)മലയാളം (Malayalam)తెలుగు (Telugu)ಕನ್ನಡ (Kannada)বাংলা (Bengali)मराठी (Marathi)ગુજરાતી (Gujarati)ਪੰਜਾਬੀ (Punjabi)Chapter 5 · Lesson 4 of 504. The range-based forfor (int x : nums) visits every value in a vector or array, with no index to count. Shorter, and no way to run off the end.