Created
March 25, 2019 10:15
-
-
Save Mulperi/ddf074ffbb3abfd9e52efa6b1003e4ce to your computer and use it in GitHub Desktop.
C++ for each loop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
int main() | |
{ | |
int arr[]{ 1, 2, 3, 4 }; | |
for (int i : arr) | |
std::cout << i << std::endl; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment