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.

3
  • use the pointer as I recommended in you previous question Commented Jun 9, 2020 at 5:26
  • I am currently using a pointer to a 3 int array, as suggested in the previous question. However that only specifies how to assign an array element by reference from the colors array, which is why I'm currently using the "dummy record" approach to set a default value. I was wondering if there was a better way to assign a default value to the pointer, other than having it point to a dummy array element in the colors array. Commented Jun 9, 2020 at 7:21
  • int* EXCLUSIVE_COLOR = {0,0,0}; read my comment or the edit at the end of Edgar's answer Commented Jun 9, 2020 at 8:30