Question

Match each of the definitions on the left with the correct answer on the right. The...

Match each of the definitions on the left with the correct answer on the right.

The de-reference operator

Answer 1Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

The address of operator

Answer 2Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

The keyword you use to allocate dynamic memory on the heap

Answer 3Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

The keyword you use to free up dynamic memory when you are done with it

Answer 4Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

These are used to delimit the members of a struct

Answer 5Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

This is used when you want to free up a dynamically allocated array

Answer 6Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

This terminates a recursive function

Answer 7Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

This operator is used to access the members of a struct

Answer 8Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

The area of a program in which a variable is known and can be used

Answer 9Choose...delete [ ]free arraymemory&*[ ]scope{ }. (dot operator)deletenewfree( )base case

These are used to inclose the index when you are accessing an array

Answer 10
0 0
Add a comment Improve this question Transcribed image text
Answer #1
The de-reference operator
*

The address of operator
&

The keyword you use to allocate dynamic memory on the heap
new

The keyword you use to free up dynamic memory when you are done with it
delete

These are used to delimit the members of a struct
{ }

This is used when you want to free up a dynamically allocated array
delete[]

This terminates a recursive function
base case

This operator is used to access the members of a struct
. (dot operator)

The area of a program in which a variable is known and can be used
scope

These are used to inclose the index when you are accessing an array
[ ]
Add a comment
Know the answer?
Add Answer to:
Match each of the definitions on the left with the correct answer on the right. The...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++ Part 1, c. Match each of the vocabulary words at the right with the BEST...

    C++ Part 1, c. Match each of the vocabulary words at the right with the BEST definition on the left. This operator is shorthand for adding a value to something ✓ Choose... This keyword is used to de-allocate memory allocated with the new operator. protected exit The increment operator for C++ This method is used to "Clean up" when an object is deleted. private Destructor Operator When you are accessing a method through a pointer, you can use this operator...

  • 12. Consider C++ class. Which one of the following choices is NOT correct? A. Class instances...

    12. Consider C++ class. Which one of the following choices is NOT correct? A. Class instances can be static, stack dynamic, or heap dynamic. B. If static or stack dynamic, they are referenced directly with value variables. C. If stack dynamic, they are referenced through pointers. D. Stack dynamic instances of classes are always created by the elaboration of an object declaration. E. The lifetime of such a class instance ends when the end of the scope of its declaration...

  • Fill the blank in each of the following using the terms at the bottom. IT. When...

    Fill the blank in each of the following using the terms at the bottom. IT. When an array is created, a value in the array is called a(n) 12. f and ) must always be used with an if) statement: True or False 13. Theoperator is used to check if two values are equal. 14. A command can only be used in a loop statement. 15. Acommand can be used in both a loop and switch statement. 16. In the...

  • How to solve this Problem in C++ . The Problem Write program that uses a class...

    How to solve this Problem in C++ . The Problem Write program that uses a class template to create a set of items. The program should: 1. add items to the set (there shouldn't be any duplicates) Example: if your codes is adding three integers, 10, 5, 10, then your program will add only two values 10 and 5 Hint: Use vectors and vector functions to store the set of items 2. Get the number of items in the set...

  • In this project you will create a console C++ program that will have the user to...

    In this project you will create a console C++ program that will have the user to enter Celsius temperature readings for anywhere between 1 and 365 days and store them in a dynamically allocated array, then display a report showing both the Celsius and Fahrenheit temperatures for each day entered. This program will require the use of pointers and dynamic memory allocation. Getting and Storing User Input: For this you will ask the user how many days’ worth of temperature...

  • Please write below code in C++ using Visual Studio. Write program that uses a class template...

    Please write below code in C++ using Visual Studio. Write program that uses a class template to create a set of items. The program should: 1. add items to the set (there shouldn't be any duplicates) • Example: if your codes is adding three integers, 10, 5, 10, then your program will add only two values 10 and 5 • Hint: Use vectors and vector functions to store the set of items 2. Get the number of items in the...

  • Write a program in C++ that uses a class template to create a set of items....

    Write a program in C++ that uses a class template to create a set of items. . . The Problem Write program that uses a class template to create a set of items. The program should: 1. add items to the set (there shouldn't be any duplicates) Example: if your codes is adding three integers, 10, 5, 10, then your program will add only two values 10 and 5 Hint: Use vectors and vector functions to store the set of...

  • IN c++ i post this question 5 times. hope this time somebody answer.. 16.5 Homework 5...

    IN c++ i post this question 5 times. hope this time somebody answer.. 16.5 Homework 5 OVERVIEW This homework builds on Hw4(given in bottom) We will modify the classes to do a few new things We will add copy constructors to the Antique and Merchant classes. We will overload the == operator for Antique and Merchant classes. We will overload the + operator for the antique class. We will add a new class the "MerchantGuild." Please use the provided templates...

  • what would be the solution code to this problem in c++? The Problem Write program that...

    what would be the solution code to this problem in c++? The Problem Write program that uses a class template to create a set of items. The program should: 1. add items to the set (there shouldn't be any duplicates) • Example: if your codes is adding three integers, 10, 5, 10, then your program will add only two values 10 and 5 Hint: Use vectors and vector functions to store the set of items 2. Get the number of...

  • Let’s build a dynamic string tokenizer! Start with the existing template and work on the areas...

    Let’s build a dynamic string tokenizer! Start with the existing template and work on the areas marked with TODO in the comments: Homework 8 Template.c Note: If you turn the template back into me without adding any original work you will receive a 0. By itself the template does nothing. You need to fill in the code to dynamically allocate an array of strings that are returned to the user. Remember: A string is an array. A tokenizer goes through...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT