Assuming arrayName is the name of an array and identifier is a name of a variable that has the same data type as the array elements, which of the follow is the correct syntax for the range-based for loop?
a) for (dataType identifier : arrayName) statements
b) for (dataType : arrayName) statements
c) for (identifier : arrayName) statements
d) for (arrayName : dataType identifier) statements
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assuming arrayName is the name of an array and identifier is a name of a variable that has the same data type as the array elements, which ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Assuming arrayName is the name of an array and identifier is a name of a variable that has the same data type as the array elements, which of the follow is the correct syntax for the range-based for loop?