Question: write C++programs in Visual Studio and you will be allowed to use the lecture slides. Part I-(30 points) 1. (3 points) Which of the following
write C++programs in Visual Studio and you will be allowed to use the lecture slides. Part I-(30 points) 1. (3 points) Which of the following statements deletes memory that has been dynamically allocated for an array? a. int array delete memory b. int delete c. delete 1 array d. new array delete 2. (3 points) After the code shown executes, which of the following statements is true? int numbers10, 1, 2, 3, 4; int *ptr = numbers ; ptr++; a. ptr will hold the address of numbers[0] b. ptr will hold the address of the second byte within the element numbers to c. ptr will hold the address of numbers [1] d. this code will not compile 3. (3 points) If you do not declare an access specification, the default for members of a class is a. inline b. private c. public d. global functions may have the same name as long as their parameter lists an 4. (3 points) different. a. Only two b. Two or more c. No d. Un-prototyped
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
