Examveda
Examveda

What is the correct way to declare a one-dimensional array in C++?

A. int* arr = new int[size];

B. int[] arr = new int[size];

C. int arr = new int[size];

D. int arr[size];

Answer: Option D


Join The Discussion

Related Questions on Arrays and Strings in C plus plus