#include <iostream>
int main() {
int arr[3][4] = {{0,1,2,3}, {4,5,6,7}, {8,9,10,11}};
int* ptr[4] = arr;
}
Why does the above code produce the array must be initialized with a brace-enclosed initializer error? I've seen other posts with this issue but the solution was to add in curly brackets, which I already have.