Machine-translated by Google. Questions are authored in English.
Top

Discussion

The maximum number of dimension an array can have in C is

  • A.compiler dependent
  • B.Only 2
  • C.Only 3
  • D.Only 4

Answer: A

Correct answer: compiler dependent

The C standard sets no fixed maximum. It specifies only a minimum that a conforming implementation must support - historically 12 levels of array, pointer and function declarators - so the practical ceiling is whatever the compiler allows. In practice arrays of more than three or four dimensions are rare.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.