Which type of memory is used by an Array in C++ programming language?
A) None-contiguous
B) Contiguous
C) Both A and B
D) only A
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Answer: B) Contiguous
The memory utilized by an array in the C and C++ programming languages is normally contiguous, which means that when an array is declared or initialized in the program, a block of memory is selected from the memory space right away. The main disadvantage of an array is that users must guess the size of the array before using it, resulting in a considerable amount of memory being consumed even when the array is not in use. The lack of memory problem arises as a result of this.