Here is the code,
Unfortunately, data doesn't point to two-dimensional array a and actually points to garbage. I wonder why?Code:class A { public: A() { static int a[][3] = {1,2,3,4,5,6,7,8,9}; int* b[3] = {a[0], a[1], a[2]}; data = &b[0]; } private: int** data; };