Progress with range-based For loop

While taking on the challenge of modifying the old For loop to a range-based loop that iterated through the word list, I discovered the ‘auto’ keyword in C++. At first, I thought that declaring a variable with auto would be the correct way of looping through the array but it turns out it allows for inferential declarations (with the caveat of increasing compile time). auto Keyword in C++

Privacy & Terms