1 class foo { 2 char z [10]; 3 public: 4 char *get_z () { return & this->z[0]; } 5 }; 6 7 int main () 8 { 9 foo x; 10 x.get_z()[9] = 'a'; 11 return 0; 12 } 13