|
From: Ioannis V. <iv...@em...> - 2003-07-10 21:55:33
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of dawood Sent: Thursday, July 10, 2003 11:36 PM To: Dev C++ Subject: [Dev-C++] three queries 1.does anybody know how to create a typedef for an array of 8 arrays of 7 pointers to int. My mistake i had not seen the '1', so i answer it here: A direct answer (if i got what you want correctly): typedef int *ar[8][7]; Also you can reach your goal gradually: typedef int *par[7]; typedef par ppar[8]; This is an array of 8 pars which means it is an array of 8 arrays of 7 int * each. Another example to help you understand how typedef makes our lives better: typedef char char_array[10]; typedef char_array m_char_array[2]; m_char_array a; What is a? :-) Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com <http://www.noicys.freeurl.com/> * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |