Question from the C++ test

Write a C++ program that creates an array of 10 Person objects.

Archived

Consider a class Person with default zero argument constructor.

What does declaring variable ‘ps’ in main() do?

..

Person *ps = new Person[10];

..

Author: Abha AgrawaStatus: ArchivedQuestion passed 381 times
-2
Community EvaluationsNo one has reviewed this question yet, be the first!