A

Admin • 833K Points
Coach

Q. Which of the following is a correct declaration of a C++ array?

  • (A) array<int> a;
  • (B) int a[10];
  • (C) int a;
  • (D) arr int[10];
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

In C++, an array is declared using square brackets, like 'int a[10];'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.