#include <iostream>
#include <iterator>

using namespace std;

struct PATTERNS {
  bool P0[3] = {0, 0, 1};
  bool P1[3] = {0, 1, 1};
  bool P2[3] = {1, 1, 1};
};

int main() {
    PATTERNS ptn;
    bool *p = (bool *)&ptn;
    
    copy(p, p + 9, ostream_iterator<bool>(cout, " "));
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: