Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • define an array dip[0], dip[1] .... Commented Jun 14, 2022 at 6:42
  • 1
    As for the "risk" of an array being created in SRAM, that would anyway be destroyed when the function in which it is defined, typically setup(), exits. If you explicitly define an array, you can still scan it with a C++11 range based for loop, which may improve the program's aesthetics. Commented Jun 14, 2022 at 10:16