Examveda

Which of the following correctly initializes an array in C++?

A. int array[3] = {1, 2, 3};

B. int array = new int[3];

C. int array(3) = {1, 2, 3};

D. int array[] = new int[3];

Answer: Option A


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures