arrays in c

  • From: Daniel Dalton <daniel.dalton47@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 19 Oct 2007 08:26:58 +1000

Hi,

Thanks to everyone who helped me with my last question.
I was just wondering is it ok to write this?
int array [4] = {{1, 3},
{4, 7}};
or can you only use the double braces for this sort of declaration?
int array [2][2] ={{1, 2},
{2, 5}};
I think that is how you write it.
I seem to get warnings if I write the first example.
So can I only use two lots of braces for Multidimensional arrays?

Thanks.

-- Daniel Dalton
http://members.iinet.net.au/~ddalton
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: