24) Dynamic memory allocation occurs ________. A) when a variable is created by the compiler B) when a variable is created at run-time C) when a pointer fails to dereference the right variable D) when...

24) Dynamic memory allocation occurs ________. A) when a variable is created by the compiler B) when a variable is created at run-time C) when a pointer fails to dereference the right variable D) when a pointer is assigned an incorrect address E) None of the above 26) Any time you use the new operator, it is good practice to ________. A) use delete afterwards to free the memory allocated by new B) use a preprocessor directive C) clear the data from the old operator D) All of the above E) None of the above 1) Which of the following statement is(are) true? A) The statement Rectangle * boxPtr; defines a variable boxPtr to be a pointer pointing to a type Rectangle. B) With pointer variables you can access, but you cannot modify, data in other variables. C) An array name is a pointer constant because the address it represents cannot be changed during run-time. D) Variables cannot be created when a program is already running. E) The expression s->m has the same meaning as (*s).m. 2) Which of the following statement about pointer is(are) NOT true? A) A pointer can be passed as an argument to a function. B) Any arithmetic operation may be performed on pointers. C) The ampersand (&) is used to dereference a pointer variable in C++. D) The expression *s->p; is only meaningful if s is a pointer to a structure and p is a pointer that is a member of that structure. E) It is possible for a structure to contain as a member a pointer to its own structure type.
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here