Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > multidimensional array

Reply
Thread Tools

multidimensional array

 
 
Owner
Guest
Posts: n/a
 
      04-26-2011
I was looking at unicode.c and I've seen code I never seen
before. Is it possible to write such a code?

char *unicode[19][21][28] =
{
{
"",
"",
....
and so on.

I only seen code like a[][] not a[][][]
 
Reply With Quote
 
 
 
 
Owner
Guest
Posts: n/a
 
      04-26-2011
And how many dimensions are allowed at maximum in standard?
 
Reply With Quote
 
 
 
 
Ben Bacarisse
Guest
Posts: n/a
 
      04-26-2011
Owner <(E-Mail Removed)> writes:

> And how many dimensions are allowed at maximum in standard?


Well, there is no definitive answer because of the way the standard is
worded, but a conforming compiler must accept at least one program with:

"12 pointer, array, and function declarators (in any combinations)
modifying an arithmetic, structure, union, or incomplete type in a
declaration"

so in your case, 11 array declarators can be used.

--
Ben.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java multidimensional string array geletine Java 12 05-05-2006 09:14 PM
Binding Multidimensional Array to DataGrid epigram ASP .Net 1 07-15-2005 11:02 PM
multidimensional array as argument Huub Java 6 05-29-2004 07:58 PM
Returning a multidimensional array. Ben Java 8 12-18-2003 08:48 AM
slice of multidimensional array Dave Bazell Perl 2 07-24-2003 11:17 PM



Advertisments