[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

multidimensional array

Owner

4/26/2011 10:56:00 AM

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[][][]
2 Answers

Owner

4/26/2011 11:17:00 AM

0

And how many dimensions are allowed at maximum in standard?

Ben Bacarisse

4/26/2011 11:25:00 AM

0

Owner <Owner@Owner-PC.com> 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.