Question
The __________ operator is used to dynamically allocate memory.
Solution
VerifiedAnswered 1 year ago
Answered 1 year ago
Step 1
1 of 2In the C ++ programing language, the new operator is used to dynamically allocate memory space, for example
ptrName = new ptrDataType; //allocate single variable
ptrName = new ptrDataType[NumberOfItems]; //allocate array of variables
//Concrete example:
char *charPtr = new char;
int *intPtr = new int[5];
Create an account to view solutions
By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Create an account to view solutions
By signing up, you accept Quizlet's Terms of Service and Privacy Policy
More related questions
- computer science
- computer science
- computer science
- computer science
1/4
- computer science
- computer science
- computer science
- computer science
1/7