Skip to content

Instantly share code, notes, and snippets.

@vbuterin2
Created September 24, 2020 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbuterin2/56fa8a32a69537e35e846857d3275b75 to your computer and use it in GitHub Desktop.
Save vbuterin2/56fa8a32a69537e35e846857d3275b75 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <iostream>
using namespace std;
int main(void)
{
// Initialize 2D array
char colour[4][10] = {"blue", "red", "organce", "yellow"};
// Pringting String stored in 2D array
for(int i = 0; i < 4; i++) {
cout << colour[i] << "\n";
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment