Skip to content

Instantly share code, notes, and snippets.

@mattsegura
Created November 26, 2020 07:45
Show Gist options
  • Save mattsegura/01194517eb58a84a26258c3eb03124ab to your computer and use it in GitHub Desktop.
Save mattsegura/01194517eb58a84a26258c3eb03124ab to your computer and use it in GitHub Desktop.
elements of an array
//printing the elements of array
#include <iostream>
#include <array>
using namespace std;
int main()
{
int multi = 1;
int numArray[] = {1, 2, 3, 4};
for (int i = 0; i < numArray[i]; i++)
{
cout << numArray[i] << " ";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment