multidimensional array

O

Owner

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[][][]
 
B

Ben Bacarisse

Owner said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top