79687519

Date: 2025-07-02 13:42:36
Score: 1
Natty:
Report link

Here is the solution I found:

const uint8_t (*arr[])[3] = {[0]=&(uint8_t[]){1,2,3}}; // correct
const uint8_t (*arr[])[3] = {[0]=&(uint8_t[]){1,2}}; // error
const uint8_t (*arr[])[n] = {[0]=&(uint8_t[]){1,2,3,...,n-1,n}}; // correct
const uint8_t (*arr[])[n] = {[0]=&(uint8_t[]){1,2,3,...,n-1}}; // error

It's not perfect, since it uses an array of pointers.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Antecer