Q. Which of the following is true about C++ arrays?

  • (A) Arrays in C++ can store elements of different data types.
  • (B) The size of an array is fixed and cannot be changed after declaration.
  • (C) Arrays in C++ start at index 1.
  • (D) C++ arrays do not have a fixed size.
πŸ’¬ Discuss
βœ… Correct Answer: (B) The size of an array is fixed and cannot be changed after declaration.
Explanation: In C++, once an array is declared, its size cannot be changed.
Explanation by: Ranjeet
In C++, once an array is declared, its size cannot be changed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
147
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
86%
Success Rate