Convert " private boolean[] lfsr; " to C++ programming language?

1 Answer

Relevance
  • 5 months ago

    " private boolean[] lfsr; " 

    Is this java?

    c++ array can be created different ways

    bool lfsr[] ={ false, false, false }; // size of 3 all initialized to false

    bool lfsr[10]; //size of 10, but uninitialized

    bool *lfsr = new bool[4]; // memory allocated size 4 also unitialized

Still have questions? Get answers by asking now.