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

Discussion

What is the maximun number of dimensions an array in C may have?

  • A.Two
  • B.eight
  • C.sixteen
  • D.Theoratically no limit. The only practical limits are memory size and compilers

Answer: D

The maximum size of an array is determined by the amount of memory that a program can access. On a 32-bit system, the maximum amount of memory that can be addressed by a pointer is 2^32 bytes which is 4 gigabytes. The actual limit may be less, depending on operating system implementation details.

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

Post your comment

Please log in or register to post a comment.