To create an array of integers which can be accessed as A[0],…,A[4] residing on the heap the code to be executed is:
a. int A[5];
b. int *A = new int[5];
c. int A = new int[5];
d. int new A[5];
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Answer: b. int *A = new int[5];