GTKWidget myButtons[10]; will give you a static array of 10 GTKWidget's.
GTKWidget *myButtons; will give you a dynamic array which you will then have to allocate memory for using malloc and realloc.
GTKWidget *myButtons[10]; would give you a pointer to an array of 10 GTKWidget's. Which is probably not what you want unless you want to be able to dynamic allocate arrays of 10 buttons.
Last edited by jtshaw; 05-05-2004 at 03:46 PM.
|