Possible Duplicate:
what is the difference between const int*, const int * const, int const *
I was reading FLTK code when I bumped into this line of code:
Fl_Widget*const* a = array();
here is the actual code:
Fl_Widget*const* Fl_Group::array() const {
return children_ <= 1 ? (Fl_Widget**)(&array_) : array_;
}
int Fl_Group::find(const Fl_Widget* o) const {
Fl_Widget*const* a = array();
int i; for (i=0; i < children_; i++) if (*a++ == o) break;
return i;
}
Now I'm wondering what is the type of pointer variable a
. Are Fl_Widget*const* a = array();
and Fl_Widget** const a = array();
equal?