What is the Maximum Size that an Array can hold?
Answer Posted / sankalp bose
For arrays allocated on the stack, it depends upon the
maximum stack size. For example, for gcc, it is normally 64K
but may be something else. For arrays allocated dynamically
or arrays defined in global/static scope, this number is
different and depends upon the maximum heap area size and
the maximum data segment size respectively. The getrlimit
system call can be used to get all these values.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is iostream in c++ used for?
What does return 0 do in c++?
Give 10 points of differences between C & C++.
State the difference between delete and delete[].
What are the four main data types?
What is problem with overriding functions?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
What are manipulators used for?
What is the C-style character string?
Explain friend class?
What is a pointer how and when is it used?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Explain the difference between class and struct in c++?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What is c++ vb?